-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchitecture.puml
98 lines (79 loc) · 1.36 KB
/
architecture.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@startuml
class main{
-createPage()
-createFavouritesPage()
-createBlockedPage()
-createToolsPage()
-createAboutPage()
-hidePages()
-homePage()
}
note top: calls functions in order
class createPage{
}
class createFavouritesPage{
-localStorage
}
class createBlockedPage{
-localStorage
}
class createToolsPage{}
note top: TODO
class createAboutPage{}
note top: TODO
class addSymbol{
-localStorage
-addSymbol(parent: Element, n: int): void
}
class hidePages{
-page
-favourites
-blocked
-tools
-about
}
class homePage{
-loadPage()
-hidePages()
-showFooter()
}
class loadPage{
-page
-PAGE_NUMBER
-SYMBOLS_PER_PAGE
}
class hidePages{
-page
-PAGE_NUMBER
}
class showFooter{
-page
-PAGE_NUMBER
}
class UI{
}
class copySymbol{}
class favourite {
-symbol
}
class loadRandomizedPage{
-page
-SYMBOLS_PER_PAGE
}
UI --> favourite : on symbol right click >
UI --> copySymbol : on symbol left click >
UI --> loadRandomizedPage : Random navbar >
UI --> homePage : Home navbar >
main --> UI : changes state with >
createPage --> addSymbol
createFavouritesPage --> addSymbol
createBlockedPage --> addSymbol
hidePages *-- createPage
hidePages *-- createFavouritesPage
hidePages *-- createBlockedPage
hidePages *-- createToolsPage
hidePages *-- createAboutPage
homePage *-- loadPage
homePage *-- hidePages
homePage *-- showFooter
@enduml