aboutsummaryrefslogtreecommitdiff
path: root/viewer/src
diff options
context:
space:
mode:
authorZero~Informatique2019-12-20 17:47:04 +0100
committerZero~Informatique2019-12-20 23:22:56 +0100
commit7ae68f079ddfb74c9a1b17c4f30dfe4c258d4a9f (patch)
treecb5e30534d9e564c311d626bba7e8d9ec0ea0f60 /viewer/src
parentc9264b0a0a7e1cb92ef7d9a391cee2c94376cff3 (diff)
downloadldgallery-7ae68f079ddfb74c9a1b17c4f30dfe4c258d4a9f.tar.gz
Viewer project foundations
Diffstat (limited to 'viewer/src')
-rw-r--r--viewer/src/assets/scss/_buefy_variables.scss152
-rw-r--r--viewer/src/assets/scss/buefy.scss37
-rw-r--r--viewer/src/assets/scss/global.scss14
-rw-r--r--viewer/src/locales/en.json3
-rw-r--r--viewer/src/main.ts15
-rw-r--r--viewer/src/plugins/buefy.ts9
-rw-r--r--viewer/src/plugins/fontawesome.js9
-rw-r--r--viewer/src/plugins/i18n.ts23
-rw-r--r--viewer/src/router/index.ts18
-rw-r--r--viewer/src/shims-tsx.d.ts13
-rw-r--r--viewer/src/shims-vue.d.ts4
-rw-r--r--viewer/src/views/LdGallery.vue82
-rw-r--r--viewer/src/views/Root.vue18
13 files changed, 397 insertions, 0 deletions
diff --git a/viewer/src/assets/scss/_buefy_variables.scss b/viewer/src/assets/scss/_buefy_variables.scss
new file mode 100644
index 0000000..716a1ec
--- /dev/null
+++ b/viewer/src/assets/scss/_buefy_variables.scss
@@ -0,0 +1,152 @@
1// Included below are all the defined variables from Bulma
2// Modify as needed, removing the !default attribute.
3
4// Colors
5
6$black: hsl(0, 0%, 4%) !default;
7$black-bis: hsl(0, 0%, 7%) !default;
8$black-ter: hsl(0, 0%, 14%) !default;
9
10$grey-darker: hsl(0, 0%, 21%) !default;
11$grey-dark: hsl(0, 0%, 29%) !default;
12$grey: hsl(0, 0%, 48%) !default;
13$grey-light: hsl(0, 0%, 71%) !default;
14$grey-lighter: hsl(0, 0%, 86%) !default;
15
16$white-ter: hsl(0, 0%, 96%) !default;
17$white-bis: hsl(0, 0%, 98%) !default;
18$white: hsl(0, 0%, 100%) !default;
19
20$orange: hsl(14, 100%, 53%) !default;
21$yellow: hsl(48, 100%, 67%) !default;
22$green: hsl(141, 71%, 48%) !default;
23$turquoise: hsl(171, 100%, 41%) !default;
24$cyan: hsl(204, 86%, 53%) !default;
25$blue: hsl(217, 71%, 53%) !default;
26$purple: hsl(271, 100%, 71%) !default;
27$red: hsl(348, 100%, 61%) !default;
28
29// Typography
30
31$family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default;
32$family-monospace: monospace !default;
33$render-mode: optimizeLegibility !default;
34
35$size-1: 3rem !default;
36$size-2: 2.5rem !default;
37$size-3: 2rem !default;
38$size-4: 1.5rem !default;
39$size-5: 1.25rem !default;
40$size-6: 1rem !default;
41$size-7: 0.75rem !default;
42
43$weight-light: 300 !default;
44$weight-normal: 400 !default;
45$weight-medium: 500 !default;
46$weight-semibold: 600 !default;
47$weight-bold: 700 !default;
48
49// Responsiveness
50
51// The container horizontal gap, which acts as the offset for breakpoints
52$gap: 32px !default;
53// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
54$tablet: 769px !default;
55// 960px container + 4rem
56$desktop: 960px + (2 * $gap) !default;
57// 1152px container + 4rem
58$widescreen: 1152px + (2 * $gap) !default;
59// 1344px container + 4rem;
60$fullhd: 1344px + (2 * $gap) !default;
61
62// Miscellaneous
63
64$easing: ease-out !default;
65$radius-small: 2px !default;
66$radius: 3px !default;
67$radius-large: 5px !default;
68$radius-rounded: 290486px !default;
69$speed: 86ms !default;
70
71// Flags
72
73$variable-columns: true !default;
74
75
76// The default Bulma derived variables are declared below
77
78$primary: $turquoise !default;
79
80$info: $cyan !default;
81$success: $green !default;
82$warning: $yellow !default;
83$danger: $red !default;
84
85$light: $white-ter !default;
86$dark: $grey-darker !default;
87
88// Invert colors
89
90$orange-invert: findColorInvert($orange) !default;
91$yellow-invert: findColorInvert($yellow) !default;
92$green-invert: findColorInvert($green) !default;
93$turquoise-invert: findColorInvert($turquoise) !default;
94$cyan-invert: findColorInvert($cyan) !default;
95$blue-invert: findColorInvert($blue) !default;
96$purple-invert: findColorInvert($purple) !default;
97$red-invert: findColorInvert($red) !default;
98
99$primary-invert: $turquoise-invert !default;
100$info-invert: $cyan-invert !default;
101$success-invert: $green-invert !default;
102$warning-invert: $yellow-invert !default;
103$danger-invert: $red-invert !default;
104$light-invert: $dark !default;
105$dark-invert: $light !default;
106
107// General colors
108
109$background: $white-ter !default;
110
111$border: $grey-lighter !default;
112$border-hover: $grey-light !default;
113
114// Text colors
115
116$text: $grey-dark !default;
117$text-invert: findColorInvert($text) !default;
118$text-light: $grey !default;
119$text-strong: $grey-darker !default;
120
121// Code colors
122
123$code: $red !default;
124$code-background: $background !default;
125
126$pre: $text !default;
127$pre-background: $background !default;
128
129// Link colors
130
131$link: $blue !default;
132$link-invert: $blue-invert !default;
133$link-visited: $purple !default;
134
135$link-hover: $grey-darker !default;
136$link-hover-border: $grey-light !default;
137
138$link-focus: $grey-darker !default;
139$link-focus-border: $blue !default;
140
141$link-active: $grey-darker !default;
142$link-active-border: $grey-dark !default;
143
144// Typography
145
146$family-primary: $family-sans-serif !default;
147$family-code: $family-monospace !default;
148
149$size-small: $size-7 !default;
150$size-normal: $size-6 !default;
151$size-medium: $size-5 !default;
152$size-large: $size-4 !default;
diff --git a/viewer/src/assets/scss/buefy.scss b/viewer/src/assets/scss/buefy.scss
new file mode 100644
index 0000000..5249899
--- /dev/null
+++ b/viewer/src/assets/scss/buefy.scss
@@ -0,0 +1,37 @@
1@import "~bulma/sass/utilities/initial-variables";
2@import "~bulma/sass/utilities/functions";
3// 1. Set your own initial variables and derived
4// variables in _variables.scss
5@import "buefy_variables";
6
7// 2. Setup your Custom Colors
8$linkedin: #0077b5;
9$linkedin-invert: findColorInvert($linkedin);
10$twitter: #55acee;
11$twitter-invert: findColorInvert($twitter);
12$github: #333;
13$github-invert: findColorInvert($github);
14
15@import "~bulma/sass/utilities/derived-variables";
16
17// 3. Add new color variables to the color map.
18$addColors: (
19 "twitter": (
20 $twitter,
21 $twitter-invert
22 ),
23 "linkedin": (
24 $linkedin,
25 $linkedin-invert
26 ),
27 "github": (
28 $github,
29 $github-invert
30 )
31);
32$colors: map-merge($colors, $addColors);
33
34@import "~bulma";
35@import "~buefy/src/scss/buefy";
36
37// 4. Provide custom buefy overrides and site styles here
diff --git a/viewer/src/assets/scss/global.scss b/viewer/src/assets/scss/global.scss
new file mode 100644
index 0000000..0bfeab9
--- /dev/null
+++ b/viewer/src/assets/scss/global.scss
@@ -0,0 +1,14 @@
1// Global CSS
2
3// === Forms
4
5.required label::after {
6 content: "*";
7 color: red;
8}
9
10// === Tools
11
12.nowrap {
13 white-space: nowrap;
14}
diff --git a/viewer/src/locales/en.json b/viewer/src/locales/en.json
new file mode 100644
index 0000000..d966983
--- /dev/null
+++ b/viewer/src/locales/en.json
@@ -0,0 +1,3 @@
1{
2 "message": "hello i18n !!"
3} \ No newline at end of file
diff --git a/viewer/src/main.ts b/viewer/src/main.ts
new file mode 100644
index 0000000..352b565
--- /dev/null
+++ b