Skip to content

Commit

Permalink
style: 🎨 prettier disabled use-tabs config
Browse files Browse the repository at this point in the history
  • Loading branch information
chantouchsek committed Mar 16, 2024
1 parent cbc2f78 commit ed14bbb
Show file tree
Hide file tree
Showing 24 changed files with 574 additions and 587 deletions.
9 changes: 5 additions & 4 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
...require('@so1ve/prettier-config'),
semi: false,
singleQuote: true,
endOfLine: 'auto',
...require('@so1ve/prettier-config'),
semi: false,
useTabs: false,
singleQuote: true,
endOfLine: 'auto',
}
44 changes: 22 additions & 22 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.experimental.useFlatConfig": true,
"eslint.validate": [
"javascript",
"typescript",
"javascriptreact",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"json5",
"toml",
"yaml",
"svelte",
"github-actions-workflow"
]
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.experimental.useFlatConfig": true,
"eslint.validate": [
"javascript",
"typescript",
"javascriptreact",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"json5",
"toml",
"yaml",
"svelte",
"github-actions-workflow"
]
}
14 changes: 7 additions & 7 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export default defineAppConfig({
title: 'Amazing Admin',
theme: {
dark: true,
colors: {
primary: '#ff0000',
},
},
title: 'Amazing Admin',
theme: {
dark: true,
colors: {
primary: '#ff0000',
},
},
})
34 changes: 17 additions & 17 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@ const { meta, matched } = useRoute()
const theme = useVTheme()
provide(
'my-theme',
computed(() => (theme.current.value.dark ? 'dark' : undefined)),
'my-theme',
computed(() => (theme.current.value.dark ? 'dark' : undefined)),
)
const title = computed(() => meta?.title || matched[0]?.meta?.title || '')
const { locale } = useI18n()
const appConfig = useAppConfig()
useHead({
title,
titleTemplate: `%s - ${appConfig.title}`,
htmlAttrs: { lang: locale },
link: [{ rel: 'icon', href: '/favicon.ico' }],
title,
titleTemplate: `%s - ${appConfig.title}`,
htmlAttrs: { lang: locale },
link: [{ rel: 'icon', href: '/favicon.ico' }],
})
useSeoMeta({
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
ogTitle: 'My Amazing Site',
description: 'This is my amazing site, let me tell you all about it.',
ogDescription: 'This is my amazing site, let me tell you all about it.',
ogImage: 'https://example.com/image.png',
twitterCard: 'summary_large_image',
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
ogTitle: 'My Amazing Site',
description: 'This is my amazing site, let me tell you all about it.',
ogDescription: 'This is my amazing site, let me tell you all about it.',
ogImage: 'https://example.com/image.png',
twitterCard: 'summary_large_image',
})
</script>

<template>
<div>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
<div>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</template>
2 changes: 1 addition & 1 deletion commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
extends: ['@commitlint/config-conventional'],
}
8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { so1ve } from '@so1ve/eslint-config'

export default so1ve(
{},
{
ignores: ['pnpm-lock.yaml'],
},
{},
{
ignores: ['pnpm-lock.yaml'],
},
)
6 changes: 3 additions & 3 deletions lang/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import auth from './en/auth'
import common from './en/common'

export default defineI18nLocale(() => ({
$vuetify,
auth,
common,
$vuetify,
auth,
common,
}))
14 changes: 7 additions & 7 deletions lang/en/auth.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export default {
login: 'Login',
title: {
login: 'Login',
register: 'Register',
forgotPassword: 'Forgot Password',
resetPassword: 'Reset Password',
},
login: 'Login',
title: {
login: 'Login',
register: 'Register',
forgotPassword: 'Forgot Password',
resetPassword: 'Reset Password',
},
}
106 changes: 53 additions & 53 deletions lang/en/common.ts
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
export default {
action: 'Action',
active: 'Active',
addFor: 'Add {0}',
age: '{0} Years old',
apply: 'Apply',
back: 'Back',
copyright: 'Powered by Touch',
cancel: 'Cancel',
cardFor: '{0} Card',
clear: 'Clear',
code: 'Code',
confirm: 'Confirm',
continue: 'Continue',
create: 'Create',
createdAt: 'Created At',
createdBy: 'Created By',
currency: {
khr: 'KHR',
khrFor: 'KHR {0}',
usd: 'USD',
usdFor: '{0} USD',
},
delete: 'Delete',
department: 'Department',
description: 'Description',
edit: 'Edit',
error: 'Error',
export: 'Export',
fileUpload: 'File Upload',
filter: 'Filter',
inactive: 'inactive',
listFor: '{0} List',
next: 'Next',
no: 'NO',
ok: 'OK',
previous: 'Previous',
print: 'Print',
profile: 'Profile',
pharmacy: 'Pharmacy',
remark: 'Remark',
reset: 'Reset',
save: 'Save',
search: 'Search',
searchFor: 'Search{0}',
setting: 'Setting',
status: 'Status',
submit: 'Submit',
success: 'Success',
update: 'Update',
updateFor: 'Update {0}',
updatedAt: 'Updated At',
view: 'View',
warning: 'Warning',
action: 'Action',
active: 'Active',
addFor: 'Add {0}',
age: '{0} Years old',
apply: 'Apply',
back: 'Back',
copyright: 'Powered by Touch',
cancel: 'Cancel',
cardFor: '{0} Card',
clear: 'Clear',
code: 'Code',
confirm: 'Confirm',
continue: 'Continue',
create: 'Create',
createdAt: 'Created At',
createdBy: 'Created By',
currency: {
khr: 'KHR',
khrFor: 'KHR {0}',
usd: 'USD',
usdFor: '{0} USD',
},
delete: 'Delete',
department: 'Department',
description: 'Description',
edit: 'Edit',
error: 'Error',
export: 'Export',
fileUpload: 'File Upload',
filter: 'Filter',
inactive: 'inactive',
listFor: '{0} List',
next: 'Next',
no: 'NO',
ok: 'OK',
previous: 'Previous',
print: 'Print',
profile: 'Profile',
pharmacy: 'Pharmacy',
remark: 'Remark',
reset: 'Reset',
save: 'Save',
search: 'Search',
searchFor: 'Search{0}',
setting: 'Setting',
status: 'Status',
submit: 'Submit',
success: 'Success',
update: 'Update',
updateFor: 'Update {0}',
updatedAt: 'Updated At',
view: 'View',
warning: 'Warning',
}
6 changes: 3 additions & 3 deletions lang/km-KH.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import auth from './en/auth'
import common from './km/common'

export default defineI18nLocale(() => ({
$vuetify,
auth,
common,
$vuetify,
auth,
common,
}))
14 changes: 7 additions & 7 deletions lang/km/auth.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export default {
login: 'Login',
title: {
login: 'Login',
register: 'Register',
forgotPassword: 'Forgot Password',
resetPassword: 'Reset Password',
},
login: 'Login',
title: {
login: 'Login',
register: 'Register',
forgotPassword: 'Forgot Password',
resetPassword: 'Reset Password',
},
}
Loading

0 comments on commit ed14bbb

Please sign in to comment.