Skip to content

Commit

Permalink
some update
Browse files Browse the repository at this point in the history
  • Loading branch information
or2e committed Mar 3, 2024
1 parent 219db65 commit 742ecfb
Show file tree
Hide file tree
Showing 15 changed files with 1,462 additions and 3,084 deletions.
1 change: 0 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"esbenp.prettier-vscode",
"eamodio.gitlens",
"Vue.volar",
"Vue.vscode-typescript-vue-plugin",
"bradlc.vscode-tailwindcss",
"naumovs.color-highlight",
"streetsidesoftware.code-spell-checker",
Expand Down
4,184 changes: 1,328 additions & 2,856 deletions src/WebUI/package-lock.json

Large diffs are not rendered by default.

68 changes: 34 additions & 34 deletions src/WebUI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@
"dependencies": {
"@chenfengyuan/vue-countdown": "^2.1.2",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/vue-fontawesome": "^3.0.5",
"@geoman-io/leaflet-geoman-free": "^2.15.0",
"@oruga-ui/oruga-next": "0.8.2",
"@fortawesome/vue-fontawesome": "^3.0.6",
"@geoman-io/leaflet-geoman-free": "^2.16.0",
"@oruga-ui/oruga-next": "^0.8.5",
"@vue-leaflet/vue-leaflet": "^0.10.1",
"@vuelidate/core": "^2.0.3",
"@vuelidate/validators": "^2.0.4",
"@vueuse/components": "^10.7.1",
"@vueuse/core": "^10.7.1",
"@vueuse/components": "^10.9.0",
"@vueuse/core": "^10.9.0",
"@vueuse/head": "^2.0.0",
"body-scroll-lock": "^4.0.0-beta.0",
"echarts": "^5.4.3",
"echarts": "^5.5.0",
"clsx": "^2.1.0",
"defu": "^6.1.4",
"floating-vue": "^5.0.3",
"floating-vue": "^5.2.2",
"http-status-codes": "^2.3.0",
"itemsjs": "^2.1.24",
"leaflet": "^1.9.4",
"luxon": "^3.4.4",
"oidc-client-ts": "^2.4.0",
"oidc-client-ts": "^3.0.1",
"pinia": "^2.1.7",
"qs": "^6.11.2",
"ufo": "^1.3.2",
"ufo": "^1.4.0",
"uuid": "^9.0.1",
"vue-echarts": "^6.6.5",
"vue": "^3.4.13",
"vue-i18n": "^9.9.0",
"vue-leaflet-markercluster": "^0.5.1",
"vue-router": "^4.2.5",
"vue-echarts": "^6.6.9",
"vue": "^3.4.21",
"vue-i18n": "^9.10.1",
"vue-leaflet-markercluster": "^0.6.0",
"vue-router": "^4.3.0",
"vue-slider-component": "^4.1.0-beta.7"
},
"devDependencies": {
Expand All @@ -52,44 +52,44 @@
"@types/body-scroll-lock": "^3.1.2",
"@types/itemsjs": "^2.1.6",
"@types/leaflet": "^1.9.8",
"@types/luxon": "^3.4.0",
"@types/qs": "^6.9.11",
"@types/uuid": "^9.0.7",
"@vitejs/plugin-vue": "^5.0.3",
"@vitest/coverage-v8": "^1.2.0",
"@vitest/ui": "^1.2.0",
"@vue-macros/reactivity-transform": "^0.4.2",
"@types/luxon": "^3.4.2",
"@types/qs": "^6.9.12",
"@types/uuid": "^9.0.8",
"@vitejs/plugin-vue": "^5.0.4",
"@vitest/coverage-v8": "^1.3.1",
"@vitest/ui": "^1.3.1",
"@vue-macros/reactivity-transform": "^0.4.3",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.4.3",
"autoprefixer": "^10.4.16",
"cssnano": "^6.0.3",
"eslint": "^8.56.0",
"@vue/test-utils": "^2.4.4",
"autoprefixer": "^10.4.18",
"cssnano": "^6.0.5",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-vue": "^9.20.1",
"eslint-plugin-vue": "^9.22.0",
"geojson": "^0.5.0",
"jsdom": "^23.2.0",
"jsdom": "^24.0.0",
"json5": "^2.2.3",
"mini-svg-data-uri": "^1.4.4",
"postcss": "^8.4.33",
"prettier": "^3.2.1",
"postcss": "^8.4.35",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
"rollup-plugin-visualizer": "^5.12.0",
"tailwind-config-viewer": "^1.7.3",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"unplugin-auto-import": "^0.17.3",
"unplugin-auto-import": "^0.17.5",
"unplugin-vue-components": "^0.26.0",
"unplugin-vue-router": "^0.7.0",
"unplugin-vue-router": "^0.8.4",
"vi-fetch": "^0.8.0",
"vite": "5.0.11",
"vite": "^5.1.4",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-top-level-await": "^1.4.1",
"vite-plugin-vue-layouts": "0.11.0",
"vitest": "^1.2.0",
"vue-tsc": "^1.8.27"
"vitest": "^1.3.1",
"vue-tsc": "^2.0.3"
},
"engines": {
"node": ">=18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@
@apply relative inline-flex gap-2;
}

.o-chk--checked {
}

.o-chk__check {
.o-chk__input {
@apply h-4.5 w-4.5;
@apply rounded-sm border-2 border-content-500 hover:border-content-100;
@apply cursor-pointer;
}

.o-chk__check--checked {
.o-chk__input--checked {
@apply border-content-100 bg-content-100 hover:border-content-300 hover:bg-content-300;
}

.o-chk__check--indeterminate {
.o-chk__input--indeterminate {
}

.o-chk__label {
Expand Down
18 changes: 9 additions & 9 deletions src/WebUI/src/assets/themes/oruga-tailwind/components/input.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.o-ctrl-input {
.o-input__wrapper {
@apply relative block;
}

.o-ctrl-input--expanded {
.o-input__wrapper--expanded {
@apply w-full;
}

.o-ctrl-input--expanded .o-input {
.o-input__wrapper--expanded .o-input {
@apply w-full;
}

Expand All @@ -23,35 +23,35 @@
@apply py-2 px-3 text-2xs;
}

.o-input--xs.o-input-iconspace-left {
.o-input--xs.o-input--iconspace-left {
@apply pl-7;
}

.o-input--xs.o-input-iconspace-right {
.o-input--xs.o-input--iconspace-right {
@apply pr-7;
}

.o-input--sm {
@apply py-3 px-4.5 text-2xs;
}

.o-input--sm.o-input-iconspace-left {
.o-input--sm.o-input--iconspace-left {
@apply pl-8;
}

.o-input--sm.o-input-iconspace-right {
.o-input--sm.o-input--iconspace-right {
@apply pr-8;
}

.o-input--lg {
@apply py-3.5 px-4 text-sm;
}

.o-input--lg.o-input-iconspace-left {
.o-input--lg.o-input--iconspace-left {
@apply pl-12;
}

.o-input--lg.o-input-iconspace-right {
.o-input--lg.o-input--iconspace-right {
@apply pr-12;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@
.o-radio--disabled {
}

.o-radio__check {
.o-radio__input {
@apply relative inline-block h-5 w-5 rounded-full p-0 align-middle;
@apply border-2 border-solid border-content-300;
@apply cursor-pointer select-none appearance-none;
}

.o-radio__check:focus-visible {
.o-radio__input:focus-visible {
@apply select-none outline-none;
}

.o-radio__check--checked {
.o-radio__input--checked {
@apply border-content-100;
}

.o-radio__check--checked:after {
.o-radio__input--checked:after {
content: '';
@apply absolute top-1/2 left-1/2 h-2.5 w-2.5 -translate-x-1/2 -translate-y-1/2 transform rounded-full bg-content-100;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@
@apply hidden;
}

.o-table__wrapper--sticky-header thead {
/* TODO: */
/* .o-table__wrapper--sticky-header thead {
@apply sticky left-0 top-0 z-50 bg-base-100;
}
Expand All @@ -152,7 +153,7 @@
.o-table__wrapper--sticky-header tfoot {
@apply sticky bottom-0 left-0 bg-base-100;
}
} */

.o-table__detail {
@apply bg-base-200;
Expand Down
2 changes: 1 addition & 1 deletion src/WebUI/src/assets/themes/oruga-tailwind/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = plugin(({ addBase, theme }) => {
backgroundPosition: 'center',
},
},
[`[type = 'checkbox']:checked`]: {
[`[type='checkbox']:checked`]: {
backgroundRepeat: 'no-repeat',
backgroundSize: '75%',
backgroundImage: `url("${svgToDataUri(
Expand Down
87 changes: 57 additions & 30 deletions src/WebUI/src/boot/oruga-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
} from '@fortawesome/vue-fontawesome';
import { library, type IconDefinition } from '@fortawesome/fontawesome-svg-core';
import {
Oruga,
// ConfigPlugin, // TODO: create PR https://github.com/oruga-ui/oruga/blob/9693d7c63246eb0d6fab791f272b6d9574dab253/packages/oruga/src/utils/config.ts#L38
ConfigProgrammatic,
OButton,
OField,
OCheckbox,
Expand All @@ -19,7 +20,6 @@ import {
OTabItem,
OIcon,
OPagination,
// OPaginationButton,
ONotification,
OCollapse,
ODatetimepicker,
Expand All @@ -38,6 +38,34 @@ export const install: BootModule = app => {
library.add(ic);
});

const config = ConfigProgrammatic.getOptions();
ConfigProgrammatic.setOptions({
...config,
// https://oruga.io/components/Icon.html
iconComponent: 'FontAwesomeIcon',
iconPack: 'crpg',
customIconPacks: {
crpg: {
sizes: {
default: 'sm',
'2xs': '2xs',
xs: 'xs',
sm: 'sm',
lg: 'lg',
xl: 'xl',
'2xl': '2xl',
'3x': '3x',
'4x': '4x',
'5x': '5x',
},
iconPrefix: 'fa-',
internalIcons: {
'close-circle': 'close',
},
},
},
useHtml5Validation: false,
});
app
.component('OIcon', OIcon)
.component('OButton', OButton)
Expand All @@ -52,38 +80,37 @@ export const install: BootModule = app => {
.component('OTabItem', OTabItem)
.component('OLoading', OLoading)
.component('OPagination', OPagination)
// .component('OPaginationButton', OPaginationButton)
.component('FontAwesomeIcon', FontAwesomeIcon)
.component('FontAwesomeLayers', FontAwesomeLayers)
.component('FontAwesomeLayersText', FontAwesomeLayersText)
.component('ONotification', ONotification)
.component('OCollapse', OCollapse)
.component('ODateTimePicker', ODatetimepicker)
.component('VueSlider', VueSlider)
.use(Oruga, {
// https://oruga.io/components/Icon.html
iconComponent: 'FontAwesomeIcon',
iconPack: 'crpg',
customIconPacks: {
crpg: {
sizes: {
default: 'sm',
'2xs': '2xs',
xs: 'xs',
sm: 'sm',
lg: 'lg',
xl: 'xl',
'2xl': '2xl',
'3x': '3x',
'4x': '4x',
'5x': '5x',
},
iconPrefix: 'fa-',
internalIcons: {
'close-circle': 'close',
},
},
},
useHtml5Validation: false,
});
.component('VueSlider', VueSlider);
// .use(ConfigPlugin, {
// // https://oruga.io/components/Icon.html
// iconComponent: 'FontAwesomeIcon',
// iconPack: 'crpg',
// customIconPacks: {
// crpg: {
// sizes: {
// default: 'sm',
// '2xs': '2xs',
// xs: 'xs',
// sm: 'sm',
// lg: 'lg',
// xl: 'xl',
// '2xl': '2xl',
// '3x': '3x',
// '4x': '4x',
// '5x': '5x',
// },
// iconPrefix: 'fa-',
// internalIcons: {
// 'close-circle': 'close',
// },
// },
// },
// useHtml5Validation: false,
// });
};
2 changes: 1 addition & 1 deletion src/WebUI/src/components/character/CharacterEditForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const wasChange = computed(() => nameModel.value !== props.character.name);
size="lg"
class="w-full"
:maxlength="32"
hasCounter
counter
@blur="$v.$touch"
@focus="$v.$reset"
/>
Expand Down
Loading

0 comments on commit 742ecfb

Please sign in to comment.