Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-SunbirdEd-portal-old
Commits
7b2f29e2
Commit
7b2f29e2
authored
6 years ago
by
Lakhan Mandloi
Browse files
Options
Download
Patches
Plain Diff
Issue #SB-7871 feat: TOC Icons changes
parent
fd5942f9
release-1.14-SP-2
Tags unavailable
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/app/client/src/app/modules/shared/components/collection-tree/collection-tree.component.html
+40
-8
...components/collection-tree/collection-tree.component.html
src/app/client/src/app/modules/shared/components/fancy-tree/fancy-tree.component.ts
+2
-2
...ules/shared/components/fancy-tree/fancy-tree.component.ts
src/app/client/src/app/modules/shared/services/config/app.config.json
+11
-11
...nt/src/app/modules/shared/services/config/app.config.json
with
53 additions
and
21 deletions
+53
-21
src/app/client/src/app/modules/shared/components/collection-tree/collection-tree.component.html
+
40
−
8
View file @
7b2f29e2
<sui-accordion
*ngFor=
"let child of rootChildrens"
class=
"ui styled accordion mt-10 width-100"
>
<sui-accordion
<sui-accordion-panel
[ngClass]=
"child.extraClasses"
(click)=
"!child.folder && onNodeClick(child)"
[(isOpen)]=
"child.togglePanelIcon"
[isDisabled]=
"(!child.children.length) || (!child.folder)"
>
*ngFor=
"let child of rootChildrens"
class=
"ui styled accordion mt-10 width-100"
>
<sui-accordion-panel
[ngClass]=
"child.extraClasses"
(click)=
"!child.folder && onNodeClick(child)"
[(isOpen)]=
"child.togglePanelIcon"
[isDisabled]=
"(!child.children.length) || (!child.folder)"
>
<div
title
class=
"accordian-left-text"
>
<div
title
class=
"accordian-left-text"
>
<i
*ngIf=
"child.folder"
class=
"fa fa-2x mr-10 vertical-align-middle"
[class.fa-folder-open-o]=
"child.togglePanelIcon"
[class.fa-folder-o]=
"!child.togglePanelIcon"
></i>
<i
<i
*ngIf=
"!child.folder"
class=
"fa fa-2x mr-10 vertical-align-middle"
[ngClass]=
"child.icon"
></i>
*ngIf=
"child.folder"
<span
[innerHTML]=
"child.title"
class=
"d-inline-block mt-5"
></span>
class=
"mr-10 vertical-align-middle"
<i
*ngIf=
"child.folder && child.children.length"
class=
"icon right-float accordion-content-right"
[class.plus]=
"!child.togglePanelIcon"
[class.minus]=
"child.togglePanelIcon"
></i>
[class.sb-icon-folder]=
"child.togglePanelIcon"
[class.sb-icon-collection]=
"!child.togglePanelIcon"
></i>
<i
*ngIf=
"!child.folder"
class=
"mr-10 vertical-align-middle"
[ngClass]=
"child.icon"
></i>
<span
[innerHTML]=
"child.title"
class=
"d-inline-block mt-5"
></span>
<i
*ngIf=
"child.folder && child.children.length"
class=
"icon right-float accordion-content-right"
[class.plus]=
"!child.togglePanelIcon"
[class.minus]=
"child.togglePanelIcon"
></i>
</div>
</div>
<div
*ngIf=
"child.folder"
content
>
<div
<app-fancy-tree
(itemSelect)=
"onItemSelect($event)"
[nodes]=
"child.children"
[options]=
"{ showConnectors: true }"
></app-fancy-tree>
*ngIf=
"child.folder"
content
>
<app-fancy-tree
(itemSelect)=
"onItemSelect($event)"
[nodes]=
"child.children"
[options]=
"{ showConnectors: true }"
></app-fancy-tree>
</div>
</div>
</sui-accordion-panel>
</sui-accordion-panel>
</sui-accordion>
</sui-accordion>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/app/client/src/app/modules/shared/components/fancy-tree/fancy-tree.component.ts
+
2
−
2
View file @
7b2f29e2
...
@@ -21,8 +21,8 @@ export class FancyTreeComponent implements AfterViewInit {
...
@@ -21,8 +21,8 @@ export class FancyTreeComponent implements AfterViewInit {
glyph
:
{
glyph
:
{
preset
:
'
awesome4
'
,
preset
:
'
awesome4
'
,
map
:
{
map
:
{
folder
:
'
fa fa-folder-o fa-lg
'
,
folder
:
'
sb-icon-collection
'
,
folderOpen
:
'
fa fa-folder-open-o fa-lg
'
folderOpen
:
'
sb-icon-folder
'
}
}
},
},
click
:
(
event
,
data
):
boolean
=>
{
click
:
(
event
,
data
):
boolean
=>
{
...
...
This diff is collapsed.
Click to expand it.
src/app/client/src/app/modules/shared/services/config/app.config.json
+
11
−
11
View file @
7b2f29e2
...
@@ -1025,18 +1025,18 @@
...
@@ -1025,18 +1025,18 @@
}
}
},
},
"collectionTreeOptions"
:
{
"collectionTreeOptions"
:
{
"fileIcon"
:
"
fa fa-file-o fa-lg
"
,
"fileIcon"
:
"
sb-icon-content
"
,
"customFileIcon"
:
{
"customFileIcon"
:
{
"video"
:
"
fa fa-file-video-o fa-lg
"
,
"video"
:
"
sb-icon-video
"
,
"pdf"
:
"
fa fa-file-pdf-o fa-lg
"
,
"pdf"
:
"
sb-icon-doc
"
,
"youtube"
:
"
fa fa-youtube fa-lg fancy_tree_red
"
,
"youtube"
:
"
sb-icon-video
"
,
"H5P"
:
"
fa fa-html5 fa-lg
"
,
"H5P"
:
"
sb-icon-content
"
,
"audio"
:
"
fa fa-file-audio-o fa-lg
"
,
"audio"
:
"
sb-icon-mp3
"
,
"ECML"
:
"
fa fa-file-code-o fa-lg
"
,
"ECML"
:
"
sb-icon-content
"
,
"HTML"
:
"
fa fa-html5 fa-lg
"
,
"HTML"
:
"
sb-icon-content
"
,
"collection"
:
"
fa fa-file-archive-o fa-lg
"
,
"collection"
:
"
sb-icon-collection
"
,
"epub"
:
"
fa fa-file-text fa-lg
"
,
"epub"
:
"
sb-icon-doc
"
,
"doc"
:
"
fa fa-file-text fa-lg
"
"doc"
:
"
sb-icon-doc
"
}
}
},
},
"mediumCode"
:{
"mediumCode"
:{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets