@deplois/template 0.0.0-stage → 0.0.2
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/README.md +129 -2
- package/app/app.config.ts +52 -0
- package/app/components/action/button.vue +35 -0
- package/app/components/content/badge.vue +9 -0
- package/app/components/content/card.vue +9 -0
- package/app/components/content/chart.vue +94 -0
- package/app/components/content/formatted-text.vue +127 -0
- package/app/components/content/table.vue +13 -0
- package/app/components/content/timeline.vue +9 -0
- package/app/components/feedback/alert.vue +9 -0
- package/app/components/feedback/loader.vue +53 -0
- package/app/components/feedback/loading-view.vue +21 -0
- package/app/components/feedback/modal.vue +93 -0
- package/app/components/feedback/toast.vue +79 -0
- package/app/components/feedback/tooltip.vue +9 -0
- package/app/components/file/list.vue +36 -0
- package/app/components/file/upload.vue +114 -0
- package/app/components/form/calendar.vue +10 -0
- package/app/components/form/check-box.vue +64 -0
- package/app/components/form/editor.vue +124 -0
- package/app/components/form/input-error.vue +59 -0
- package/app/components/form/input.vue +43 -0
- package/app/components/form/select.vue +10 -0
- package/app/components/form/terms.vue +54 -0
- package/app/components/form/toggle.vue +29 -0
- package/app/components/navigation/breadcrumb.vue +10 -0
- package/app/components/navigation/tabs.vue +9 -0
- package/app/components/page/dashboard.vue +84 -0
- package/app/components/page/error.vue +45 -0
- package/app/components/page/frame.vue +53 -0
- package/app/error.vue +10 -0
- package/app/languages/en-us.ts +87 -0
- package/app/languages/index.ts +15 -0
- package/app/languages/ja-jp.ts +87 -0
- package/app/languages/ko-kr.ts +87 -0
- package/app/plugins/modal.plugin.ts +103 -0
- package/app/plugins/module.ts +49 -0
- package/app/plugins/toast.plugin.ts +44 -0
- package/app/plugins/variables.plugin.ts +28 -0
- package/app/types/file.ts +8 -0
- package/assets/css/colors.css +61 -0
- package/assets/css/main.css +164 -0
- package/nuxt.config.ts +19 -0
- package/package.json +59 -4
- package/public/_deplois/font/LICENSE +104 -0
- package/public/_deplois/font/PretendardVariable.woff2 +0 -0
- package/public/_deplois/logo.svg +3 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { reactive } from 'vue'
|
|
2
|
+
import { defineNuxtPlugin } from '#app'
|
|
3
|
+
|
|
4
|
+
export interface ModalFile {
|
|
5
|
+
name: string
|
|
6
|
+
size: number | string
|
|
7
|
+
type: string
|
|
8
|
+
data: string
|
|
9
|
+
}
|
|
10
|
+
export type ModalValue = string | boolean | Array<ModalFile>
|
|
11
|
+
export interface ModalForm {
|
|
12
|
+
type: 'input' | 'select' | 'file' | 'toggle'
|
|
13
|
+
title: string
|
|
14
|
+
name: string
|
|
15
|
+
placeholder?: string
|
|
16
|
+
options?: Array<{ name: string, value: string }>
|
|
17
|
+
value?: ModalValue
|
|
18
|
+
}
|
|
19
|
+
export type ModalCallback = (data?: Record<string, ModalValue>) => unknown | Promise<unknown>
|
|
20
|
+
export interface ModalItem {
|
|
21
|
+
srl: number
|
|
22
|
+
type: 'alert' | 'form'
|
|
23
|
+
title: string
|
|
24
|
+
content: string
|
|
25
|
+
forms?: Array<ModalForm>
|
|
26
|
+
isForced: boolean
|
|
27
|
+
callback?: ModalCallback
|
|
28
|
+
buttonText?: { cancel: string, continue?: string }
|
|
29
|
+
isActive: boolean
|
|
30
|
+
isSubmitting: boolean
|
|
31
|
+
error: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class Modal {
|
|
35
|
+
public modals: Array<ModalItem> = reactive([])
|
|
36
|
+
private sequence: number = 0
|
|
37
|
+
|
|
38
|
+
constructor(private readonly failureMessage?: () => string) {}
|
|
39
|
+
|
|
40
|
+
public add(type: 'alert' | 'form', title: string, content: string, forms?: Array<ModalForm>, isForced: boolean = false, callback?: ModalCallback, buttonText?: ModalItem['buttonText']): number {
|
|
41
|
+
const names = new Set<string>()
|
|
42
|
+
const fields = forms?.map(form => {
|
|
43
|
+
if (!form.name || names.has(form.name)) throw new Error('Form field names must be unique and non-empty.')
|
|
44
|
+
if (form.type === 'select' && !form.options) throw new Error('Select options are required.')
|
|
45
|
+
names.add(form.name)
|
|
46
|
+
return {
|
|
47
|
+
...form,
|
|
48
|
+
options: form.options?.map(option => ({ ...option })),
|
|
49
|
+
value: Array.isArray(form.value) ? form.value.map(file => ({ ...file }))
|
|
50
|
+
: form.value ?? (form.type === 'toggle' ? false : form.type === 'file' ? [] : '')
|
|
51
|
+
}
|
|
52
|
+
})
|
|
53
|
+
const srl = this.sequence++
|
|
54
|
+
this.modals.push({
|
|
55
|
+
srl: srl,
|
|
56
|
+
type: type,
|
|
57
|
+
title: title,
|
|
58
|
+
content: content,
|
|
59
|
+
forms: fields,
|
|
60
|
+
isForced: isForced,
|
|
61
|
+
callback: callback,
|
|
62
|
+
buttonText: buttonText,
|
|
63
|
+
isActive: true,
|
|
64
|
+
isSubmitting: false,
|
|
65
|
+
error: ''
|
|
66
|
+
})
|
|
67
|
+
return srl
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public remove(srl: number, force: boolean = false): void {
|
|
71
|
+
const index = this.modals.findIndex(modal => modal.srl === srl)
|
|
72
|
+
const modal = this.modals[index]
|
|
73
|
+
if (!modal || modal.isSubmitting || (modal.isForced && !force)) return
|
|
74
|
+
this.modals.splice(index, 1)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public async confirm(srl: number): Promise<void> {
|
|
78
|
+
const modal = this.modals.find(modal => modal.srl === srl)
|
|
79
|
+
if (!modal || modal.isSubmitting) return
|
|
80
|
+
modal.isSubmitting = true
|
|
81
|
+
modal.error = ''
|
|
82
|
+
try {
|
|
83
|
+
const data = modal.forms ? Object.fromEntries(modal.forms.map(form => [form.name, form.value ?? ''])) : undefined
|
|
84
|
+
await modal.callback?.(data)
|
|
85
|
+
modal.isSubmitting = false
|
|
86
|
+
this.remove(srl, true)
|
|
87
|
+
} catch (error) {
|
|
88
|
+
modal.error = error instanceof Error ? error.message : this.failureMessage?.() ?? 'Failed to submit. Please try again.'
|
|
89
|
+
} finally {
|
|
90
|
+
modal.isSubmitting = false
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
public clear(): void {
|
|
95
|
+
this.modals.splice(0)
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export default defineNuxtPlugin((nuxtApp): { provide: { modal: Modal } } => {
|
|
100
|
+
const modal = new Modal(() => nuxtApp.$languages.items[nuxtApp.$languages.value].components.modal.failed)
|
|
101
|
+
if (import.meta.hot) import.meta.hot.dispose(() => modal.clear())
|
|
102
|
+
return { provide: { modal: modal } }
|
|
103
|
+
})
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { vMaska } from 'maska/vue'
|
|
2
|
+
|
|
3
|
+
class Loader {
|
|
4
|
+
public contents: Array<string> = reactive([])
|
|
5
|
+
addLoad(content: string): () => void {
|
|
6
|
+
this.contents.push(content)
|
|
7
|
+
|
|
8
|
+
let removed = false
|
|
9
|
+
return () => {
|
|
10
|
+
if(removed) return
|
|
11
|
+
removed = true
|
|
12
|
+
const index = this.contents.indexOf(content)
|
|
13
|
+
if(index !== -1) this.contents.splice(index, 1)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default defineNuxtPlugin((nuxtApp): {
|
|
19
|
+
provide: {
|
|
20
|
+
loadingView: Loader,
|
|
21
|
+
|
|
22
|
+
copy: (text: string) => void,
|
|
23
|
+
solveButton: ($event: Event) => void,
|
|
24
|
+
JSON: {
|
|
25
|
+
encode: (object: object) => string,
|
|
26
|
+
decode: (text: string) => object
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
} => {
|
|
30
|
+
nuxtApp.vueApp.directive('maska', vMaska)
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
provide: {
|
|
34
|
+
loadingView: reactive(new Loader()),
|
|
35
|
+
copy: function (text: string) {
|
|
36
|
+
navigator.clipboard.writeText(text)
|
|
37
|
+
},
|
|
38
|
+
solveButton: ($event: Event) => {
|
|
39
|
+
const target = $event.target
|
|
40
|
+
const element = target instanceof Element ? target.closest('button') : null
|
|
41
|
+
element?.dispatchEvent(new Event('loading-end'))
|
|
42
|
+
},
|
|
43
|
+
JSON: {
|
|
44
|
+
encode: (object: object) => { return JSON.stringify(object) },
|
|
45
|
+
decode: (text: string) => { return JSON.parse(text) }
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
})
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { reactive } from 'vue'
|
|
2
|
+
import { defineNuxtPlugin } from '#app'
|
|
3
|
+
|
|
4
|
+
export type ToastType = 'info' | 'success' | 'warning' | 'danger'
|
|
5
|
+
export interface ToastItem {
|
|
6
|
+
srl: number
|
|
7
|
+
type: ToastType
|
|
8
|
+
message: string
|
|
9
|
+
duration: number
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class Toast {
|
|
13
|
+
public toasts: Array<ToastItem> = reactive([])
|
|
14
|
+
private sequence: number = 0
|
|
15
|
+
private timers = new Map<number, ReturnType<typeof setTimeout>>()
|
|
16
|
+
|
|
17
|
+
public add(type: ToastType, message: string, duration: number = 5000): number {
|
|
18
|
+
const srl = this.sequence++
|
|
19
|
+
this.toasts.push({ srl: srl, type: type, message: message, duration: duration })
|
|
20
|
+
if (import.meta.client && Number.isFinite(duration) && duration > 0) {
|
|
21
|
+
this.timers.set(srl, setTimeout(() => this.remove(srl), duration))
|
|
22
|
+
}
|
|
23
|
+
return srl
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public remove(srl: number): void {
|
|
27
|
+
clearTimeout(this.timers.get(srl))
|
|
28
|
+
this.timers.delete(srl)
|
|
29
|
+
const index = this.toasts.findIndex(toast => toast.srl === srl)
|
|
30
|
+
if (index !== -1) this.toasts.splice(index, 1)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public clear(): void {
|
|
34
|
+
for (const timer of this.timers.values()) clearTimeout(timer)
|
|
35
|
+
this.timers.clear()
|
|
36
|
+
this.toasts.splice(0)
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default defineNuxtPlugin(() => {
|
|
41
|
+
const toast = new Toast()
|
|
42
|
+
if (import.meta.hot) import.meta.hot.dispose(() => toast.clear())
|
|
43
|
+
return { provide: { toast: toast } }
|
|
44
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { computed, reactive, ref } from 'vue'
|
|
2
|
+
import { defineNuxtPlugin } from '#app'
|
|
3
|
+
import { items, locales } from '../languages'
|
|
4
|
+
|
|
5
|
+
export default defineNuxtPlugin(() => {
|
|
6
|
+
const language = ref<keyof typeof items>('ko-kr')
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
provide: {
|
|
10
|
+
page: {
|
|
11
|
+
title: ref<string | null>(null),
|
|
12
|
+
subtitle: ref<string | null>(null),
|
|
13
|
+
width: ref('48.5rem'),
|
|
14
|
+
variables: reactive({}) as Record<string, unknown>
|
|
15
|
+
},
|
|
16
|
+
languages: reactive({
|
|
17
|
+
value: computed({
|
|
18
|
+
get: () => language.value,
|
|
19
|
+
set: (value: string) => {
|
|
20
|
+
language.value = Object.hasOwn(items, value) ? value as keyof typeof items : 'en-us'
|
|
21
|
+
}
|
|
22
|
+
}),
|
|
23
|
+
locale: computed(() => locales[language.value]),
|
|
24
|
+
items: structuredClone(items)
|
|
25
|
+
})
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
})
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@theme static {
|
|
2
|
+
--color-brand-50: #F2F9FF;
|
|
3
|
+
--color-brand-100: #E5F3FF;
|
|
4
|
+
--color-brand-200: #CCE7FF;
|
|
5
|
+
--color-brand-300: #99CFFF;
|
|
6
|
+
--color-brand-400: #66B8FF;
|
|
7
|
+
--color-brand-500: #33A0FF;
|
|
8
|
+
--color-brand-600: #0088FF;
|
|
9
|
+
--color-brand-700: #006DCC;
|
|
10
|
+
--color-brand-800: #005299;
|
|
11
|
+
--color-brand-900: #003666;
|
|
12
|
+
--color-brand-950: #001B33;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:root, .light {
|
|
16
|
+
--ui-primary: var(--color-brand-600);
|
|
17
|
+
--ui-success: var(--color-emerald-600);
|
|
18
|
+
--ui-info: var(--color-sky-600);
|
|
19
|
+
--ui-warning: var(--color-amber-600);
|
|
20
|
+
--ui-error: var(--color-rose-600);
|
|
21
|
+
--ui-bg: white;
|
|
22
|
+
--ui-bg-muted: var(--color-slate-50);
|
|
23
|
+
--ui-bg-elevated: var(--color-slate-100);
|
|
24
|
+
--ui-bg-accented: var(--color-slate-200);
|
|
25
|
+
--ui-bg-inverted: var(--color-slate-900);
|
|
26
|
+
--ui-text: var(--color-slate-700);
|
|
27
|
+
--ui-text-highlighted: var(--color-slate-900);
|
|
28
|
+
--ui-text-muted: var(--color-slate-500);
|
|
29
|
+
--ui-text-dimmed: var(--color-slate-400);
|
|
30
|
+
--ui-text-toned: var(--color-slate-600);
|
|
31
|
+
--ui-text-inverted: white;
|
|
32
|
+
--ui-border: var(--color-slate-200);
|
|
33
|
+
--ui-border-muted: var(--color-slate-100);
|
|
34
|
+
--ui-border-accented: var(--color-slate-300);
|
|
35
|
+
--ui-border-inverted: var(--color-slate-900);
|
|
36
|
+
color-scheme: light;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dark {
|
|
40
|
+
--ui-primary: var(--color-brand-600);
|
|
41
|
+
--ui-success: var(--color-emerald-400);
|
|
42
|
+
--ui-info: var(--color-sky-400);
|
|
43
|
+
--ui-warning: var(--color-amber-400);
|
|
44
|
+
--ui-error: var(--color-rose-400);
|
|
45
|
+
--ui-bg: #000000;
|
|
46
|
+
--ui-bg-muted: var(--color-slate-950);
|
|
47
|
+
--ui-bg-elevated: var(--color-slate-900);
|
|
48
|
+
--ui-bg-accented: var(--color-slate-800);
|
|
49
|
+
--ui-bg-inverted: white;
|
|
50
|
+
--ui-text: var(--color-slate-200);
|
|
51
|
+
--ui-text-highlighted: white;
|
|
52
|
+
--ui-text-muted: var(--color-slate-400);
|
|
53
|
+
--ui-text-dimmed: var(--color-slate-500);
|
|
54
|
+
--ui-text-toned: var(--color-slate-300);
|
|
55
|
+
--ui-text-inverted: var(--color-slate-900);
|
|
56
|
+
--ui-border: var(--color-slate-800);
|
|
57
|
+
--ui-border-muted: var(--color-slate-900);
|
|
58
|
+
--ui-border-accented: var(--color-slate-700);
|
|
59
|
+
--ui-border-inverted: white;
|
|
60
|
+
color-scheme: dark;
|
|
61
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
@import '@nuxt/ui';
|
|
3
|
+
@import './colors.css';
|
|
4
|
+
@source '../../app';
|
|
5
|
+
|
|
6
|
+
@custom-variant hover {
|
|
7
|
+
@media (hover: hover) {
|
|
8
|
+
&:hover:not(:disabled):not([aria-disabled='true']):not([data-disabled]):not([data-loading='true']) {
|
|
9
|
+
@slot;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@keyframes moveBox {
|
|
15
|
+
from {
|
|
16
|
+
transform: translateX(-110%);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
to {
|
|
20
|
+
transform: translateX(290%);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@font-face {
|
|
25
|
+
font-family: 'Pretendard';
|
|
26
|
+
font-weight: 100 900;
|
|
27
|
+
font-display: swap;
|
|
28
|
+
src: url('/_deplois/font/PretendardVariable.woff2') format('woff2');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@font-face {
|
|
32
|
+
font-family: 'Paperlogy';
|
|
33
|
+
font-weight: 100;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-display: swap;
|
|
36
|
+
src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-1Thin.woff2') format('woff2'),
|
|
37
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-1Thin.woff') format('woff'),
|
|
38
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-1Thin.otf') format('opentype'),
|
|
39
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-1Thin.ttf') format('truetype');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@font-face {
|
|
43
|
+
font-family: 'Paperlogy';
|
|
44
|
+
font-weight: 200;
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-display: swap;
|
|
47
|
+
src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-2ExtraLight.woff2') format('woff2'),
|
|
48
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-2ExtraLight.woff') format('woff'),
|
|
49
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-2ExtraLight.otf') format('opentype'),
|
|
50
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-2ExtraLight.ttf') format('truetype');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@font-face {
|
|
54
|
+
font-family: 'Paperlogy';
|
|
55
|
+
font-weight: 300;
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-display: swap;
|
|
58
|
+
src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-3Light.woff2') format('woff2'),
|
|
59
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-3Light.woff') format('woff'),
|
|
60
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-3Light.otf') format('opentype'),
|
|
61
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-3Light.ttf') format('truetype');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@font-face {
|
|
65
|
+
font-family: 'Paperlogy';
|
|
66
|
+
font-weight: 400;
|
|
67
|
+
font-style: normal;
|
|
68
|
+
font-display: swap;
|
|
69
|
+
src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-4Regular.woff2') format('woff2'),
|
|
70
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-4Regular.woff') format('woff'),
|
|
71
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-4Regular.otf') format('opentype'),
|
|
72
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-4Regular.ttf') format('truetype');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@font-face {
|
|
76
|
+
font-family: 'Paperlogy';
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
font-style: normal;
|
|
79
|
+
font-display: swap;
|
|
80
|
+
src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-5Medium.woff2') format('woff2'),
|
|
81
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-5Medium.woff') format('woff'),
|
|
82
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-5Medium.otf') format('opentype'),
|
|
83
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-5Medium.ttf') format('truetype');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@font-face {
|
|
87
|
+
font-family: 'Paperlogy';
|
|
88
|
+
font-weight: 600;
|
|
89
|
+
font-style: normal;
|
|
90
|
+
font-display: swap;
|
|
91
|
+
src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-6SemiBold.woff2') format('woff2'),
|
|
92
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-6SemiBold.woff') format('woff'),
|
|
93
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-6SemiBold.otf') format('opentype'),
|
|
94
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-6SemiBold.ttf') format('truetype');
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@font-face {
|
|
98
|
+
font-family: 'Paperlogy';
|
|
99
|
+
font-weight: 700;
|
|
100
|
+
font-style: normal;
|
|
101
|
+
font-display: swap;
|
|
102
|
+
src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-7Bold.woff2') format('woff2'),
|
|
103
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-7Bold.woff') format('woff'),
|
|
104
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-7Bold.otf') format('opentype'),
|
|
105
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-7Bold.ttf') format('truetype');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@font-face {
|
|
109
|
+
font-family: 'Paperlogy';
|
|
110
|
+
font-weight: 800;
|
|
111
|
+
font-style: normal;
|
|
112
|
+
font-display: swap;
|
|
113
|
+
src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-8ExtraBold.woff2') format('woff2'),
|
|
114
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-8ExtraBold.woff') format('woff'),
|
|
115
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-8ExtraBold.otf') format('opentype'),
|
|
116
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-8ExtraBold.ttf') format('truetype');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@font-face {
|
|
120
|
+
font-family: 'Paperlogy';
|
|
121
|
+
font-weight: 900;
|
|
122
|
+
font-style: normal;
|
|
123
|
+
font-display: swap;
|
|
124
|
+
src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-9Black.woff2') format('woff2'),
|
|
125
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-9Black.woff') format('woff'),
|
|
126
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-9Black.otf') format('opentype'),
|
|
127
|
+
url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-9Black.ttf') format('truetype');
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
html,
|
|
131
|
+
#__nuxt {
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: 100%;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
body {
|
|
137
|
+
font-family: 'Pretendard', sans-serif;
|
|
138
|
+
background-color: var(--ui-bg);
|
|
139
|
+
color: var(--ui-text);
|
|
140
|
+
margin: 0;
|
|
141
|
+
padding: 0;
|
|
142
|
+
|
|
143
|
+
width: 100%;
|
|
144
|
+
height: 100%;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.paperlogy {
|
|
148
|
+
font-family: 'Paperlogy', sans-serif;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.page-enter-active,
|
|
152
|
+
.page-leave-active {
|
|
153
|
+
transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.page-enter-from {
|
|
157
|
+
opacity: 0;
|
|
158
|
+
transform: translate3d(15px, 0, 0);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.page-leave-to {
|
|
162
|
+
opacity: 0;
|
|
163
|
+
transform: translate3d(-15px, 0, 0);
|
|
164
|
+
}
|
package/nuxt.config.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { fileURLToPath } from 'node:url'
|
|
2
|
+
|
|
3
|
+
const resolve = (path: string) => fileURLToPath(new URL(path, import.meta.url))
|
|
4
|
+
|
|
5
|
+
export default defineNuxtConfig({
|
|
6
|
+
compatibilityDate: '2025-07-15',
|
|
7
|
+
app: {
|
|
8
|
+
pageTransition: { name: 'page', mode: 'out-in' }
|
|
9
|
+
},
|
|
10
|
+
components: [
|
|
11
|
+
...['action', 'form', 'feedback', 'content', 'navigation'].map(folder => ({ path: resolve(`./app/components/${folder}`), pathPrefix: false })),
|
|
12
|
+
{ path: resolve('./app/components/file'), prefix: 'File', pathPrefix: false },
|
|
13
|
+
{ path: resolve('./app/components/page'), prefix: 'Page', pathPrefix: false }
|
|
14
|
+
],
|
|
15
|
+
css: [resolve('./assets/css/main.css')],
|
|
16
|
+
modules: ['@nuxt/ui', '@nuxt/icon'],
|
|
17
|
+
ui: { fonts: false },
|
|
18
|
+
icon: { serverBundle: { collections: ['material-symbols', 'lucide', 'mdi', 'fa6-solid', 'gg', 'ic'] } }
|
|
19
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deplois/template",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./nuxt.config.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./nuxt.config.ts",
|
|
8
|
+
"./languages": "./app/languages/index.ts",
|
|
9
|
+
"./types/file": "./app/types/file.ts"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"nuxt.config.ts",
|
|
13
|
+
"app",
|
|
14
|
+
"assets",
|
|
15
|
+
"public",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"pack": "npm pack",
|
|
20
|
+
"check": "node scripts/check.mjs",
|
|
21
|
+
"prepack": "npm run check",
|
|
22
|
+
"publish": "node scripts/publish.mjs",
|
|
23
|
+
"deploy": "node scripts/publish.mjs"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@iconify/json": "2.2.397",
|
|
27
|
+
"@nuxt/icon": "2.1.1",
|
|
28
|
+
"@nuxt/ui": "4.2.1",
|
|
29
|
+
"@tiptap/extension-text-align": "3.32.2",
|
|
30
|
+
"@tiptap/starter-kit": "3.32.2",
|
|
31
|
+
"@tiptap/vue-3": "3.32.2",
|
|
32
|
+
"maska": "3.2.0",
|
|
33
|
+
"pug": "3.0.3",
|
|
34
|
+
"pug-plain-loader": "1.1.0",
|
|
35
|
+
"tailwind-merge": "3.7.0"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"nuxt": "^4.1.2",
|
|
39
|
+
"vue": "^3.5.21"
|
|
40
|
+
},
|
|
41
|
+
"description": "Shared Nuxt 4 design layer for deplois applications",
|
|
42
|
+
"license": "UNLICENSED",
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/deplois/template.git"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/deplois/template#readme",
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/deplois/template/issues"
|
|
50
|
+
},
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public",
|
|
53
|
+
"registry": "https://registry.npmjs.org/"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@vue/compiler-sfc": "3.5.22",
|
|
57
|
+
"nuxt": "4.1.2",
|
|
58
|
+
"typescript": "^5.6.3",
|
|
59
|
+
"vue": "3.5.22"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard),
|
|
2
|
+
with Reserved Font Name 'Pretendard'.
|
|
3
|
+
|
|
4
|
+
Copyright 2014-2021 Adobe (http://www.adobe.com/),
|
|
5
|
+
with Reserved Font Name 'Source'.
|
|
6
|
+
Source is a trademark of Adobe in the United States and/or other countries.
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter),
|
|
9
|
+
with Reserved Font Name 'Inter'.
|
|
10
|
+
|
|
11
|
+
Copyright 2021 The M+ FONTS Project Authors (https://github.com/coz-m/MPLUS_FONTS),
|
|
12
|
+
with Reserved Font Name 'M PLUS 1'.
|
|
13
|
+
|
|
14
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
15
|
+
This license is copied below, and is also available with a FAQ at:
|
|
16
|
+
https://scripts.sil.org/OFL
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
-----------------------------------------------------------
|
|
20
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
21
|
+
-----------------------------------------------------------
|
|
22
|
+
|
|
23
|
+
PREAMBLE
|
|
24
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
25
|
+
development of collaborative font projects, to support the font creation
|
|
26
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
27
|
+
open framework in which fonts may be shared and improved in partnership
|
|
28
|
+
with others.
|
|
29
|
+
|
|
30
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
31
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
32
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
33
|
+
redistributed and/or sold with any software provided that any reserved
|
|
34
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
35
|
+
however, cannot be released under any other type of license. The
|
|
36
|
+
requirement for fonts to remain under this license does not apply
|
|
37
|
+
to any document created using the fonts or their derivatives.
|
|
38
|
+
|
|
39
|
+
DEFINITIONS
|
|
40
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
41
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
42
|
+
include source files, build scripts and documentation.
|
|
43
|
+
|
|
44
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
45
|
+
copyright statement(s).
|
|
46
|
+
|
|
47
|
+
"Original Version" refers to the collection of Font Software components as
|
|
48
|
+
distributed by the Copyright Holder(s).
|
|
49
|
+
|
|
50
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
51
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
52
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
53
|
+
new environment.
|
|
54
|
+
|
|
55
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
56
|
+
writer or other person who contributed to the Font Software.
|
|
57
|
+
|
|
58
|
+
PERMISSION & CONDITIONS
|
|
59
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
60
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
61
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
62
|
+
Software, subject to the following conditions:
|
|
63
|
+
|
|
64
|
+
1) Neither the Font Software nor any of its individual components,
|
|
65
|
+
in Original or Modified Versions, may be sold by itself.
|
|
66
|
+
|
|
67
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
68
|
+
redistributed and/or sold with any software, provided that each copy
|
|
69
|
+
contains the above copyright notice and this license. These can be
|
|
70
|
+
included either as stand-alone text files, human-readable headers or
|
|
71
|
+
in the appropriate machine-readable metadata fields within text or
|
|
72
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
73
|
+
|
|
74
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
75
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
76
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
77
|
+
presented to the users.
|
|
78
|
+
|
|
79
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
80
|
+
Software shall not be used to promote, endorse or advertise any
|
|
81
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
82
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
83
|
+
permission.
|
|
84
|
+
|
|
85
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
86
|
+
must be distributed entirely under this license, and must not be
|
|
87
|
+
distributed under any other license. The requirement for fonts to
|
|
88
|
+
remain under this license does not apply to any document created
|
|
89
|
+
using the Font Software.
|
|
90
|
+
|
|
91
|
+
TERMINATION
|
|
92
|
+
This license becomes null and void if any of the above conditions are
|
|
93
|
+
not met.
|
|
94
|
+
|
|
95
|
+
DISCLAIMER
|
|
96
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
97
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
98
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
99
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
100
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
101
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
102
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
103
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
104
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M38.6367 5C42.0767 5.00022 44.8652 7.79834 44.8652 11.25V38.75C44.8652 42.2017 42.0767 44.9998 38.6367 45H11.2285C7.78856 44.9998 5 42.2016 5 38.75V11.25C5 7.79835 7.78856 5.00023 11.2285 5H38.6367ZM15.5117 26.25C13.1466 26.25 11.2285 28.1738 11.2285 30.5469V34.4531C11.2285 36.8262 13.1466 38.75 15.5117 38.75H34.3535C36.7186 38.75 38.6367 36.8262 38.6367 34.4531V30.5469C38.6367 28.1738 36.7186 26.25 34.3535 26.25H15.5117ZM15.5117 11.25C13.1466 11.25 11.2285 13.1738 11.2285 15.5469V19.4531C11.2285 21.8262 13.1466 23.75 15.5117 23.75H34.3535C36.7186 23.75 38.6367 21.8262 38.6367 19.4531V15.5469C38.6367 13.1738 36.7186 11.25 34.3535 11.25H15.5117Z" fill="#0088FF"/>
|
|
3
|
+
</svg>
|