@sbc-connect/nuxt-base 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +1 -0
- package/README.md +73 -0
- package/app/app.config.ts +14 -0
- package/app/app.vue +14 -0
- package/app/components/BaseItem.vue +8 -0
- package/app/components/HelloWorld.vue +13 -0
- package/app/components/NewItem.vue +15 -0
- package/modules/assets/index.ts +24 -0
- package/modules/assets/runtime/assets/core-layout.css +13 -0
- package/modules/assets/runtime/assets/core-tw.css +242 -0
- package/nuxt.config.ts +24 -0
- package/package.json +42 -0
- package/playwright.config.ts +3 -0
- package/public/BCGovLogo/gov_bc_logo_horiz_en.png +0 -0
- package/public/BCGovLogo/gov_bc_logo_horiz_fr.png +0 -0
- package/public/BCGovLogo/gov_bc_logo_vert_en.png +0 -0
- package/public/BCGovLogo/gov_bc_logo_vert_fr.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/fonts/BCSans/BCSans-Bold.woff +0 -0
- package/public/fonts/BCSans/BCSans-Bold.woff2 +0 -0
- package/public/fonts/BCSans/BCSans-BoldItalic.woff +0 -0
- package/public/fonts/BCSans/BCSans-BoldItalic.woff2 +0 -0
- package/public/fonts/BCSans/BCSans-Italic.woff +0 -0
- package/public/fonts/BCSans/BCSans-Italic.woff2 +0 -0
- package/public/fonts/BCSans/BCSans-Regular.woff +0 -0
- package/public/fonts/BCSans/BCSans-Regular.woff2 +0 -0
- package/public/fonts/BCSans/LICENSE_OFL.txt +94 -0
package/.env.example
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
NUXT_BASE_URL="http://localhost:3000/"
|
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Nuxt Layer Starter
|
|
2
|
+
|
|
3
|
+
Create Nuxt extendable layer with this GitHub template.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
Make sure to install the dependencies:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm install
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Working on your layer
|
|
14
|
+
|
|
15
|
+
Your layer is at the root of this repository, it is exactly like a regular Nuxt project, except you can publish it on NPM.
|
|
16
|
+
|
|
17
|
+
The `.playground` directory should help you on trying your layer during development.
|
|
18
|
+
|
|
19
|
+
Running `pnpm dev` will prepare and boot `.playground` directory, which imports your layer itself.
|
|
20
|
+
|
|
21
|
+
## Distributing your layer
|
|
22
|
+
|
|
23
|
+
Your Nuxt layer is shaped exactly the same as any other Nuxt project, except you can publish it on NPM.
|
|
24
|
+
|
|
25
|
+
To do so, you only have to check if `files` in `package.json` are valid, then run:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm publish --access public
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Once done, your users will only have to run:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm install --save your-layer
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Then add the dependency to their `extends` in `nuxt.config`:
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
defineNuxtConfig({
|
|
41
|
+
extends: 'your-layer'
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Development Server
|
|
46
|
+
|
|
47
|
+
Start the development server on http://localhost:3000
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pnpm dev
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Production
|
|
54
|
+
|
|
55
|
+
Build the application for production:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
pnpm build
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Or statically generate it with:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pnpm generate
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Locally preview production build:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
pnpm preview
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|
package/app/app.vue
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="app-container">
|
|
3
|
+
<div class="app-inner-container app-body">
|
|
4
|
+
<div class="flex flex-col lg:flex-row lg:gap-6 grow">
|
|
5
|
+
<div class="grow max-w-full overflow-hidden">
|
|
6
|
+
<HelloWorld />
|
|
7
|
+
Base layer text update
|
|
8
|
+
<NewItem />
|
|
9
|
+
<BaseItem />
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const { myLayer } = useAppConfig()
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div class="bg-primary">
|
|
7
|
+
<h1>Hello World! NEW x 3!!!</h1>
|
|
8
|
+
<pre>{{ myLayer }}</pre>
|
|
9
|
+
<p class="text-bcGovGray-900">
|
|
10
|
+
Hello World text base
|
|
11
|
+
</p>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineNuxtModule, createResolver, installModule } from '@nuxt/kit'
|
|
2
|
+
|
|
3
|
+
// Module options TypeScript interface definition
|
|
4
|
+
export interface ModuleOptions {
|
|
5
|
+
someconfig: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default defineNuxtModule<ModuleOptions>({
|
|
9
|
+
meta: {
|
|
10
|
+
name: 'assets',
|
|
11
|
+
configKey: 'assets'
|
|
12
|
+
},
|
|
13
|
+
// Default configuration options of the Nuxt module
|
|
14
|
+
defaults: {},
|
|
15
|
+
async setup(_options, _nuxt) {
|
|
16
|
+
console.info('setting up assets module')
|
|
17
|
+
const resolver = createResolver(import.meta.url)
|
|
18
|
+
|
|
19
|
+
// _nuxt.options.css.push(resolver.resolve('./runtime/assets/core-main.css'))
|
|
20
|
+
_nuxt.options.css.push(resolver.resolve('./runtime/assets/core-tw.css'))
|
|
21
|
+
_nuxt.options.css.push(resolver.resolve('./runtime/assets/core-layout.css'))
|
|
22
|
+
await installModule('@nuxt/ui')
|
|
23
|
+
}
|
|
24
|
+
})
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@reference "tailwindcss";
|
|
2
|
+
|
|
3
|
+
.app-container {
|
|
4
|
+
@apply min-h-dvh flex flex-col bg-(--color-bcGovGray-100) text-(--color-bcGovGray-700); /* bg-gray-100 text-gray-700 */
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.app-inner-container {
|
|
8
|
+
@apply max-w-(--container-bcGovLg) w-full mx-auto px-4;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.app-body {
|
|
12
|
+
@apply grow relative flex flex-col;
|
|
13
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "@nuxt/ui";
|
|
3
|
+
|
|
4
|
+
@source "../../../../";
|
|
5
|
+
|
|
6
|
+
/* Customize Nuxt UI default tokens */
|
|
7
|
+
:root {
|
|
8
|
+
--ui-primary: var(--color-blue-500);
|
|
9
|
+
--ui-radius: 0.25rem;
|
|
10
|
+
--ui-error: var(--color-red-600);
|
|
11
|
+
--ui-text-inverted: #FFFFFF;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@theme static {
|
|
15
|
+
/* font */
|
|
16
|
+
--font-sans: 'BCSans', 'Verdana', 'Arial', 'sans-serif';
|
|
17
|
+
|
|
18
|
+
/* widths */
|
|
19
|
+
--container-bcGovMd: 1020px;
|
|
20
|
+
--container-bcGovLg: 1360px;
|
|
21
|
+
--container-bcGovInput: 600px;
|
|
22
|
+
|
|
23
|
+
/* list style types */
|
|
24
|
+
--marker-alpha: lower-alpha;
|
|
25
|
+
--marker-upper-alpha: upper-alpha;
|
|
26
|
+
|
|
27
|
+
/* box shadow */
|
|
28
|
+
--shadow-bcGovInput: inset 0 -2px 0 0px #1669bb;
|
|
29
|
+
|
|
30
|
+
/* COLOURS */
|
|
31
|
+
/* these colours are as defined in styleguide: */
|
|
32
|
+
/* https://preview.uxpin.com/73eb31e6346bc2863a066f02218a3af289325619#/pages/138840439/simulate/sitemap?mode=i */
|
|
33
|
+
/* for more details see previous link */
|
|
34
|
+
/* last updated on (2023-10-16) */
|
|
35
|
+
/* PRIMARY COLOURS */
|
|
36
|
+
--color-bcGovColor-footer: #003366;
|
|
37
|
+
--color-bcGovColor-header: #003366;
|
|
38
|
+
--color-bcGovColor-navDivider: #FCBA19;
|
|
39
|
+
/* LINK COLOURS */
|
|
40
|
+
--color-bcGovColor-activeBlue: #1669BB;
|
|
41
|
+
--color-bcGovColor-markBlue: #1a5a96;
|
|
42
|
+
--color-bcGovColor-markBlueHover: #0000EE;
|
|
43
|
+
/* TEXT/NON-CLICKABLE COLOURS */
|
|
44
|
+
--color-bcGovColor-darkGray: #212529;
|
|
45
|
+
--color-bcGovColor-midGray: #495057;
|
|
46
|
+
--color-bcGovColor-lightGray: #757575;
|
|
47
|
+
--color-bcGovColor-nonClickable: #38598A;
|
|
48
|
+
/* BACKGROUND COLOURS */
|
|
49
|
+
--color-bcGovColor-white: #FFFFFF;
|
|
50
|
+
--color-bcGovColor-gray1: #F1F3F5;
|
|
51
|
+
--color-bcGovColor-gray2: #E2E8EE;
|
|
52
|
+
--color-bcGovColor-lightBlue: #E4EDF7;
|
|
53
|
+
/* LINES */
|
|
54
|
+
--color-bcGovColor-hairlinesOnWhite: #DEE2E6;
|
|
55
|
+
--color-bcGovColor-specialityDottedLines: #899EB2;
|
|
56
|
+
--color-bcGovColor-formFieldLines: #6F7780;
|
|
57
|
+
/* OUTCOMES */
|
|
58
|
+
--color-outcomes-approved: #2E8540;
|
|
59
|
+
--color-outcomes-error: #D3272C;
|
|
60
|
+
--color-outcomes-caution: #F8661A;
|
|
61
|
+
|
|
62
|
+
/* GRAY */
|
|
63
|
+
--color-bcGovGray-50: #f8f9fa;
|
|
64
|
+
--color-bcGovGray-100: #f1f3f5;
|
|
65
|
+
--color-bcGovGray-200: #e9ecef;
|
|
66
|
+
--color-bcGovGray-300: #dee2e6;
|
|
67
|
+
--color-bcGovGray-400: #ced4da;
|
|
68
|
+
--color-bcGovGray-500: #adb5bd;
|
|
69
|
+
--color-bcGovGray-600: #868e96;
|
|
70
|
+
--color-bcGovGray-700: #495057;
|
|
71
|
+
--color-bcGovGray-800: #343a40;
|
|
72
|
+
--color-bcGovGray-900: #212529;
|
|
73
|
+
--color-bcGovGray-950: #232529;
|
|
74
|
+
|
|
75
|
+
/* BLUE */
|
|
76
|
+
--color-blue-50: #e4edf7;
|
|
77
|
+
--color-blue-100: #e0e7ed;
|
|
78
|
+
--color-blue-150: #b3c2d1;
|
|
79
|
+
--color-blue-200: #8099b3;
|
|
80
|
+
--color-blue-300: #4d7094;
|
|
81
|
+
--color-blue-350: #38598a;
|
|
82
|
+
--color-blue-400: #26527d;
|
|
83
|
+
--color-blue-500: #1669bb;
|
|
84
|
+
--color-blue-600: #125192;
|
|
85
|
+
--color-blue-700: #002e5e;
|
|
86
|
+
--color-blue-800: #002753;
|
|
87
|
+
--color-blue-900: #002049;
|
|
88
|
+
--color-blue-950: #001438;
|
|
89
|
+
|
|
90
|
+
/* RED */
|
|
91
|
+
--color-red-50: #fef2f2;
|
|
92
|
+
--color-red-100: #fde3e4;
|
|
93
|
+
--color-red-200: #fdcbcc;
|
|
94
|
+
--color-red-300: #faa7a9;
|
|
95
|
+
--color-red-400: #f57478;
|
|
96
|
+
--color-red-500: #eb484d;
|
|
97
|
+
--color-red-600: #d3272c;
|
|
98
|
+
--color-red-700: #b52024;
|
|
99
|
+
--color-red-800: #961e21;
|
|
100
|
+
--color-red-900: #7d1f22;
|
|
101
|
+
--color-red-950: #440b0d;
|
|
102
|
+
|
|
103
|
+
/* YELLOW */
|
|
104
|
+
--color-yellow-50: #fffbeb;
|
|
105
|
+
--color-yellow-100: #fef2c7;
|
|
106
|
+
--color-yellow-200: #fee589;
|
|
107
|
+
--color-yellow-300: #fdd14c;
|
|
108
|
+
--color-yellow-400: #fcba19;
|
|
109
|
+
--color-yellow-500: #f69b0a;
|
|
110
|
+
--color-yellow-600: #da7505;
|
|
111
|
+
--color-yellow-700: #b55108;
|
|
112
|
+
--color-yellow-800: #933e0d;
|
|
113
|
+
--color-yellow-900: #79340e;
|
|
114
|
+
--color-yellow-950: #451903;
|
|
115
|
+
|
|
116
|
+
/* GREEN */
|
|
117
|
+
--color-green-50: #f2fbf4;
|
|
118
|
+
--color-green-100: #e2f6e6;
|
|
119
|
+
--color-green-200: #c6eccd;
|
|
120
|
+
--color-green-300: #99dca6;
|
|
121
|
+
--color-green-400: #65c378;
|
|
122
|
+
--color-green-500: #40a755;
|
|
123
|
+
--color-green-600: #2e8540;
|
|
124
|
+
--color-green-700: #286d37;
|
|
125
|
+
--color-green-800: #24572f;
|
|
126
|
+
--color-green-900: #1f4828;
|
|
127
|
+
--color-green-950: #0c2713;
|
|
128
|
+
|
|
129
|
+
/* MIDNIGHT BLUE */
|
|
130
|
+
--color-midnightBlue-50: #eef7ff;
|
|
131
|
+
--color-midnightBlue-100: #dceeff;
|
|
132
|
+
--color-midnightBlue-200: #b2dfff;
|
|
133
|
+
--color-midnightBlue-300: #6dc6ff;
|
|
134
|
+
--color-midnightBlue-400: #20a8ff;
|
|
135
|
+
--color-midnightBlue-500: #008dff;
|
|
136
|
+
--color-midnightBlue-600: #006edf;
|
|
137
|
+
--color-midnightBlue-700: #0057b4;
|
|
138
|
+
--color-midnightBlue-800: #004a94;
|
|
139
|
+
--color-midnightBlue-900: #003366;
|
|
140
|
+
--color-midnightBlue-950: #002651;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@font-face {
|
|
144
|
+
font-family: "BCSans";
|
|
145
|
+
font-style: normal;
|
|
146
|
+
font-weight: 400;
|
|
147
|
+
src: url("BCGovFonts/BCSans-Regular.woff2") format("woff2"),
|
|
148
|
+
url("BCGovFonts/BCSans-Regular.woff") format("woff"); /* Optimized for very modern browsers */
|
|
149
|
+
font-display: swap;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@font-face {
|
|
153
|
+
font-family: "BCSans";
|
|
154
|
+
font-style: italic;
|
|
155
|
+
font-weight: 400;
|
|
156
|
+
src: url("BCGovFonts/BCSans-Italic.woff2") format("woff2"),
|
|
157
|
+
url("BCGovFonts/BCSans-Italic.woff") format("woff"); /* Optimized for very modern browsers */
|
|
158
|
+
font-display: swap;
|
|
159
|
+
}
|
|
160
|
+
@font-face {
|
|
161
|
+
font-family: "BCSans";
|
|
162
|
+
font-weight: 700;
|
|
163
|
+
src: url("BCGovFonts/BCSans-Bold.woff2") format("woff2"),
|
|
164
|
+
url("BCGovFonts/BCSans-Bold.woff") format("woff"); /* Optimized for very modern browsers */
|
|
165
|
+
font-display: swap;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@font-face {
|
|
169
|
+
font-family: "BCSans";
|
|
170
|
+
font-style: italic;
|
|
171
|
+
font-weight: 700;
|
|
172
|
+
src: url("BCGovFonts/BCSans-BoldItalic.woff2") format("woff2"),
|
|
173
|
+
url("BCGovFonts/BCSans-BoldItalic.woff") format("woff"); /* Optimized for very modern browsers */
|
|
174
|
+
font-display: swap;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
html,
|
|
178
|
+
body {
|
|
179
|
+
min-height: 100dvh; /* Modern browsers */
|
|
180
|
+
min-height: 100vh;
|
|
181
|
+
font-family: 'BCSans', Verdana, Arial, sans-serif;
|
|
182
|
+
font-size: 0.875rem;
|
|
183
|
+
text-rendering: optimizeLegibility;
|
|
184
|
+
-webkit-font-smoothing: antialiased;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@media (min-width: 960px) {
|
|
188
|
+
html,
|
|
189
|
+
body {
|
|
190
|
+
font-size: 1rem;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@layer base {
|
|
195
|
+
h1,
|
|
196
|
+
h2,
|
|
197
|
+
h3,
|
|
198
|
+
h4 {
|
|
199
|
+
@apply text-bcGovGray-900;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
h1,
|
|
203
|
+
h2,
|
|
204
|
+
h3 {
|
|
205
|
+
@apply font-bold;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
h1,
|
|
209
|
+
h2 {
|
|
210
|
+
@apply leading-9;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
h1 {
|
|
214
|
+
@apply text-3xl;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
h2 {
|
|
218
|
+
@apply text-lg;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
h3 {
|
|
222
|
+
@apply text-base;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
p {
|
|
226
|
+
@apply font-normal text-bcGovColor-midGray;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
td,
|
|
230
|
+
th {
|
|
231
|
+
@apply text-gray-900 text-sm;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* floating labels */
|
|
235
|
+
.floating-label-input {
|
|
236
|
+
@apply pointer-events-none absolute left-0 top-1 text-bcGovGray-900 text-xs font-medium px-2.5 transition-all peer-focus:top-1 peer-focus:text-xs peer-placeholder-shown:text-sm peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-focus:translate-none peer-focus:text-blue-500;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.floating-label-textarea {
|
|
240
|
+
@apply pointer-events-none absolute left-0 top-1 text-bcGovGray-900 text-xs font-medium px-2.5 transition-all peer-focus:top-1 peer-focus:text-xs peer-placeholder-shown:text-sm peer-placeholder-shown:top-2.5 peer-focus:translate-none peer-focus:text-blue-500;
|
|
241
|
+
}
|
|
242
|
+
}
|
package/nuxt.config.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
2
|
+
import { createResolver } from 'nuxt/kit'
|
|
3
|
+
|
|
4
|
+
const { resolve } = createResolver(import.meta.url)
|
|
5
|
+
export default defineNuxtConfig({
|
|
6
|
+
ssr: false,
|
|
7
|
+
|
|
8
|
+
devtools: { enabled: false },
|
|
9
|
+
|
|
10
|
+
modules: ['@nuxt/ui'],
|
|
11
|
+
|
|
12
|
+
alias: {
|
|
13
|
+
'BCGovFonts': resolve('./public/fonts/BCSans'),
|
|
14
|
+
'BCGovLogoSmEn': resolve('./public/BCGovLogo/gov_bc_logo_vert_en.png'),
|
|
15
|
+
'BCGovLogoSmFr': resolve('./public/BCGovLogo/gov_bc_logo_vert_fr.png'),
|
|
16
|
+
'BCGovLogoLgEn': resolve('./public/BCGovLogo/gov_bc_logo_horiz_en.png'),
|
|
17
|
+
'BCGovLogoLgFr': resolve('./public/BCGovLogo/gov_bc_logo_horiz_fr.png'),
|
|
18
|
+
'#base': resolve('./')
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
css: [],
|
|
22
|
+
|
|
23
|
+
compatibilityDate: '2025-07-10'
|
|
24
|
+
})
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sbc-connect/nuxt-base",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"repository": "github:bcgov/connect-nuxt",
|
|
6
|
+
"main": "./nuxt.config.ts",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@nuxt/ui": "^3.2.0"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"nuxt": "4.0.0",
|
|
12
|
+
"typescript": "^5.8.3",
|
|
13
|
+
"vue": "latest",
|
|
14
|
+
"@nuxtjs/i18n": "^9.5.5",
|
|
15
|
+
"@playwright/test": "^1.52.0",
|
|
16
|
+
"@axe-core/playwright": "^4.10.2",
|
|
17
|
+
"@faker-js/faker": "^9.8.0",
|
|
18
|
+
"@nuxt/test-utils": "^3.19.1",
|
|
19
|
+
"vitest": "^3.2.3",
|
|
20
|
+
"@vitest/coverage-v8": "^3.2.3",
|
|
21
|
+
"happy-dom": "^17.6.3",
|
|
22
|
+
"otpauth": "^9.4.0",
|
|
23
|
+
"@testing-library/vue": "^8.1.0",
|
|
24
|
+
"@vue/test-utils": "^2.4.6",
|
|
25
|
+
"dotenv": "^17.2.0",
|
|
26
|
+
"@sbc-connect/playwright-config": "0.0.1",
|
|
27
|
+
"@sbc-connect/vitest-config": "0.0.1"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"preinstall": "npx only-allow pnpm",
|
|
31
|
+
"dev": "nuxi dev .playground",
|
|
32
|
+
"build": "nuxt build .playground",
|
|
33
|
+
"build:test": "pnpm generate && npx serve .playground/.output/public",
|
|
34
|
+
"generate": "nuxt generate .playground",
|
|
35
|
+
"preview": "npx serve .playground/.output/public",
|
|
36
|
+
"lint": "eslint .",
|
|
37
|
+
"lint:fix": "eslint --fix .",
|
|
38
|
+
"test": "pnpm run test:unit; pnpm run test:e2e",
|
|
39
|
+
"test:unit": "vitest run",
|
|
40
|
+
"test:e2e": "npx playwright test"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Copyright (c) 2015, Google Inc., copyright (c) 2019, Province of B.C. 2019
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License,
|
|
4
|
+
Version 1.1.
|
|
5
|
+
|
|
6
|
+
This license is copied below, and is also available with a FAQ at:
|
|
7
|
+
http://scripts.sil.org/OFL
|
|
8
|
+
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
11
|
+
-----------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
PREAMBLE
|
|
14
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
15
|
+
development of collaborative font projects, to support the font
|
|
16
|
+
creation efforts of academic and linguistic communities, and to
|
|
17
|
+
provide a free and open framework in which fonts may be shared and
|
|
18
|
+
improved in partnership with others.
|
|
19
|
+
|
|
20
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
21
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
22
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
23
|
+
redistributed and/or sold with any software provided that any reserved
|
|
24
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
25
|
+
however, cannot be released under any other type of license. The
|
|
26
|
+
requirement for fonts to remain under this license does not apply to
|
|
27
|
+
any document created using the fonts or their derivatives.
|
|
28
|
+
|
|
29
|
+
DEFINITIONS
|
|
30
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
31
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
32
|
+
include source files, build scripts and documentation.
|
|
33
|
+
|
|
34
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
35
|
+
copyright statement(s).
|
|
36
|
+
|
|
37
|
+
"Original Version" refers to the collection of Font Software
|
|
38
|
+
components as distributed by the Copyright Holder(s).
|
|
39
|
+
|
|
40
|
+
"Modified Version" refers to any derivative made by adding to,
|
|
41
|
+
deleting, or substituting -- in part or in whole -- any of the
|
|
42
|
+
components of the Original Version, by changing formats or by porting
|
|
43
|
+
the Font Software to a new environment.
|
|
44
|
+
|
|
45
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
46
|
+
writer or other person who contributed to the Font Software.
|
|
47
|
+
|
|
48
|
+
PERMISSION & CONDITIONS
|
|
49
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
50
|
+
a copy of the Font Software, to use, study, copy, merge, embed,
|
|
51
|
+
modify, redistribute, and sell modified and unmodified copies of the
|
|
52
|
+
Font Software, subject to the following conditions:
|
|
53
|
+
|
|
54
|
+
1) Neither the Font Software nor any of its individual components, in
|
|
55
|
+
Original or Modified Versions, may be sold by itself.
|
|
56
|
+
|
|
57
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
58
|
+
redistributed and/or sold with any software, provided that each copy
|
|
59
|
+
contains the above copyright notice and this license. These can be
|
|
60
|
+
included either as stand-alone text files, human-readable headers or
|
|
61
|
+
in the appropriate machine-readable metadata fields within text or
|
|
62
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
63
|
+
|
|
64
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
65
|
+
Name(s) unless explicit written permission is granted by the
|
|
66
|
+
corresponding Copyright Holder. This restriction only applies to the
|
|
67
|
+
primary font name as presented to the users.
|
|
68
|
+
|
|
69
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
70
|
+
Software shall not be used to promote, endorse or advertise any
|
|
71
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
72
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
73
|
+
permission.
|
|
74
|
+
|
|
75
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
76
|
+
must be distributed entirely under this license, and must not be
|
|
77
|
+
distributed under any other license. The requirement for fonts to
|
|
78
|
+
remain under this license does not apply to any document created using
|
|
79
|
+
the Font Software.
|
|
80
|
+
|
|
81
|
+
TERMINATION
|
|
82
|
+
This license becomes null and void if any of the above conditions are
|
|
83
|
+
not met.
|
|
84
|
+
|
|
85
|
+
DISCLAIMER
|
|
86
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
87
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
88
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
89
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
90
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
91
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
92
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
93
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
94
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|