generated from Seekra/repository-template
style: reorder imports alphabetically
This commit is contained in:
+3
-4
@@ -15,13 +15,12 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Navbar from './features/nav/components/Navbar.vue';
|
|
||||||
import Footer from './features/footer/components/Footer.vue';
|
|
||||||
|
|
||||||
import { LANGUAGE_PATH } from './config/featureSettings.js';
|
import { LANGUAGE_PATH } from './config/featureSettings.js';
|
||||||
import { updatePageTitle } from './router';
|
import Footer from './features/footer/components/Footer.vue';
|
||||||
|
import Navbar from './features/nav/components/Navbar.vue';
|
||||||
import { useSettings } from './features/settings/composables/useSettings.js';
|
import { useSettings } from './features/settings/composables/useSettings.js';
|
||||||
import { setLocale } from './i18n';
|
import { setLocale } from './i18n';
|
||||||
|
import { updatePageTitle } from './router';
|
||||||
import { computed, onMounted, watch, watchEffect } from 'vue';
|
import { computed, onMounted, watch, watchEffect } from 'vue';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ limitations under the License.
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Icon from '@/features/icons/components/Icon.vue';
|
import Icon from '@/features/icons/components/Icon.vue';
|
||||||
|
|
||||||
import { useSettings } from '@/features/settings/composables/useSettings';
|
import { useSettings } from '@/features/settings/composables/useSettings';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ limitations under the License.
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import LanguageSwitchButton from '@/features/i18n/components/LanguageSwitchButton.vue';
|
import LanguageSwitchButton from '@/features/i18n/components/LanguageSwitchButton.vue';
|
||||||
|
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|||||||
@@ -15,13 +15,12 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Icon from '@/features/icons/components/Icon.vue';
|
|
||||||
|
|
||||||
import { LANGUAGE_PATH } from '@/config/featureSettings';
|
import { LANGUAGE_PATH } from '@/config/featureSettings';
|
||||||
|
import Icon from '@/features/icons/components/Icon.vue';
|
||||||
import { useSettings } from '@/features/settings/composables/useSettings';
|
import { useSettings } from '@/features/settings/composables/useSettings';
|
||||||
|
import { setLocale, SUPPORTED_LANGUAGES } from '@/i18n';
|
||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { setLocale, SUPPORTED_LANGUAGES } from '@/i18n';
|
|
||||||
|
|
||||||
const { t, locale } = useI18n();
|
const { t, locale } = useI18n();
|
||||||
const { setSetting, getSetting } = useSettings();
|
const { setSetting, getSetting } = useSettings();
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import LanguageSwitchButton from '../LanguageSwitchButton.vue';
|
||||||
import { LANGUAGE_PATH } from '@/config/featureSettings.js';
|
import { LANGUAGE_PATH } from '@/config/featureSettings.js';
|
||||||
import { useSettings } from '@/features/settings/composables/useSettings.js';
|
import { useSettings } from '@/features/settings/composables/useSettings.js';
|
||||||
import { mountComponent } from '@/test-utils/mountComponent.js';
|
import { mountComponent } from '@/test-utils/mountComponent.js';
|
||||||
import { expect, test, describe } from 'vitest';
|
import { describe, expect, test } from 'vitest';
|
||||||
import LanguageSwitchButton from '../LanguageSwitchButton.vue';
|
|
||||||
|
|
||||||
const getWrapper = function getWrapper() {
|
const getWrapper = function getWrapper() {
|
||||||
return mountComponent(LanguageSwitchButton);
|
return mountComponent(LanguageSwitchButton);
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed } from 'vue';
|
|
||||||
import { ensureUnit } from '@/utils/cssDimensions';
|
import { ensureUnit } from '@/utils/cssDimensions';
|
||||||
|
import { computed } from 'vue';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
name: {
|
name: {
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import ColorSchemeButton from '@/features/colorScheme/components/ColorSchemeButton.vue';
|
|
||||||
import logo from '@/assets/images/logo.svg';
|
|
||||||
import NavbarSearchBarWrapper from './NavbarSearchBarWrapper.vue';
|
import NavbarSearchBarWrapper from './NavbarSearchBarWrapper.vue';
|
||||||
|
import logo from '@/assets/images/logo.svg';
|
||||||
|
import ColorSchemeButton from '@/features/colorScheme/components/ColorSchemeButton.vue';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ limitations under the License.
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Searchbar from '@/features/search/components/Searchbar.vue';
|
import Searchbar from '@/features/search/components/Searchbar.vue';
|
||||||
|
|
||||||
import { watch } from 'vue';
|
import { watch } from 'vue';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
|
||||||
|
|||||||
@@ -16,12 +16,11 @@ limitations under the License.
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Icon from '@/features/icons/components/Icon.vue';
|
import Icon from '@/features/icons/components/Icon.vue';
|
||||||
|
import { useI18n } from 'vue-i18n';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
const searchQuery = defineModel();
|
const searchQuery = defineModel();
|
||||||
|
|
||||||
import { useRouter } from 'vue-router';
|
|
||||||
import { useI18n } from 'vue-i18n';
|
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Icon from '@/features/icons/components/Icon.vue';
|
|
||||||
import { useSettingsStore } from '../stores/settingsStore';
|
import { useSettingsStore } from '../stores/settingsStore';
|
||||||
|
import Icon from '@/features/icons/components/Icon.vue';
|
||||||
import { computed, ref, useId, watch } from 'vue';
|
import { computed, ref, useId, watch } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
|
|||||||
@@ -15,10 +15,8 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Icon from '@/features/icons/components/Icon.vue';
|
|
||||||
|
|
||||||
import { useSettingsStore } from '../stores/settingsStore';
|
import { useSettingsStore } from '../stores/settingsStore';
|
||||||
|
import Icon from '@/features/icons/components/Icon.vue';
|
||||||
import { computed, ref, useId, watch } from 'vue';
|
import { computed, ref, useId, watch } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
|
|||||||
@@ -15,11 +15,10 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Switch from './Switch.vue';
|
|
||||||
import SettingsInput from './SettingsInput.vue';
|
|
||||||
import Selection from './Selection.vue';
|
import Selection from './Selection.vue';
|
||||||
|
import SettingsInput from './SettingsInput.vue';
|
||||||
import SettingsPageLink from './SettingsPageLink.vue';
|
import SettingsPageLink from './SettingsPageLink.vue';
|
||||||
|
import Switch from './Switch.vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Icon from '@/features/icons/components/Icon.vue';
|
|
||||||
import { useSettingsPage } from '../composables/useSettingsPage';
|
import { useSettingsPage } from '../composables/useSettingsPage';
|
||||||
|
import Icon from '@/features/icons/components/Icon.vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { useSettingsStore } from '../../stores/settingsStore.js';
|
||||||
import Selection from '../Selection.vue';
|
import Selection from '../Selection.vue';
|
||||||
import { mountComponent } from '@/test-utils/mountComponent.js';
|
import { mountComponent } from '@/test-utils/mountComponent.js';
|
||||||
import { useSettingsStore } from '../../stores/settingsStore.js';
|
|
||||||
import { expect, describe, test } from 'vitest';
|
import { expect, describe, test } from 'vitest';
|
||||||
import { nextTick } from 'vue';
|
import { nextTick } from 'vue';
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { useSettingsStore } from '../../stores/settingsStore.js';
|
||||||
import SettingsInput from '../SettingsInput.vue';
|
import SettingsInput from '../SettingsInput.vue';
|
||||||
import { mountComponent } from '@/test-utils/mountComponent';
|
import { mountComponent } from '@/test-utils/mountComponent';
|
||||||
import { useSettingsStore } from '../../stores/settingsStore.js';
|
|
||||||
import { describe, expect, test } from 'vitest';
|
import { describe, expect, test } from 'vitest';
|
||||||
import { nextTick } from 'vue';
|
import { nextTick } from 'vue';
|
||||||
|
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { useSettingsStore } from '../../stores/settingsStore.js';
|
||||||
import Switch from '../Switch.vue';
|
import Switch from '../Switch.vue';
|
||||||
import { mountComponent } from '@/test-utils/mountComponent.js';
|
import { mountComponent } from '@/test-utils/mountComponent.js';
|
||||||
import { useSettingsStore } from '../../stores/settingsStore.js';
|
import { describe, expect, test } from 'vitest';
|
||||||
import { expect, describe, test } from 'vitest';
|
|
||||||
import { nextTick } from 'vue';
|
import { nextTick } from 'vue';
|
||||||
|
|
||||||
const getWrapper = function getWrapper({
|
const getWrapper = function getWrapper({
|
||||||
|
|||||||
@@ -14,8 +14,14 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, test, expect } from 'vitest';
|
import {
|
||||||
import { validateSettingsConfig, validateEntry, validateSelectionOptions, assertType, assertString } from '../settingsValidator';
|
assertString,
|
||||||
|
assertType,
|
||||||
|
validateEntry,
|
||||||
|
validateSelectionOptions,
|
||||||
|
validateSettingsConfig
|
||||||
|
} from '../settingsValidator';
|
||||||
|
import { describe, expect, test } from 'vitest';
|
||||||
|
|
||||||
describe('settingsValidator', () => {
|
describe('settingsValidator', () => {
|
||||||
describe('validateSettingsConfig', () => {
|
describe('validateSettingsConfig', () => {
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import LeftSidebarLayout from '@/layouts/LeftSidebarLayout.vue';
|
|
||||||
import SettingsPage from '../components/SettingsPage.vue';
|
|
||||||
|
|
||||||
|
import SettingsPage from '../components/SettingsPage.vue';
|
||||||
import settingsConfiguration from '../config.js';
|
import settingsConfiguration from '../config.js';
|
||||||
import { getSettingRecursively } from '../utils/getSetting.js';
|
import { getSettingRecursively } from '../utils/getSetting.js';
|
||||||
|
import LeftSidebarLayout from '@/layouts/LeftSidebarLayout.vue';
|
||||||
import { computed, onMounted, ref, watch } from 'vue';
|
import { computed, onMounted, ref, watch } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute, useRouter } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
|
|||||||
+6
-5
@@ -14,14 +14,15 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { createRouter, createWebHistory } from 'vue-router';
|
|
||||||
import { i18n } from '@/i18n';
|
|
||||||
|
|
||||||
import SearchView from '../views/SearchView.vue';
|
|
||||||
import LegalNoticeView from '@/features/legal/views/LegalNoticeView.vue';
|
import LegalNoticeView from '@/features/legal/views/LegalNoticeView.vue';
|
||||||
import SearchResultsView from '@/features/search/views/SearchResultsView.vue';
|
import SearchResultsView from '@/features/search/views/SearchResultsView.vue';
|
||||||
import SettingsView from '@/features/settings/views/SettingsView.vue';
|
import SettingsView from '@/features/settings/views/SettingsView.vue';
|
||||||
import NotFound from '../views/NotFound.vue';
|
import NotFound from '@/views/NotFound.vue';
|
||||||
|
import SearchView from '@/views/SearchView.vue';
|
||||||
|
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
import { createRouter, createWebHistory } from 'vue-router';
|
||||||
|
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { createTestingPinia } from '@pinia/testing';
|
import { createTestingPinia } from '@pinia/testing';
|
||||||
import { vi } from 'vitest';
|
|
||||||
import { mount } from '@vue/test-utils';
|
import { mount } from '@vue/test-utils';
|
||||||
|
import { vi } from 'vitest';
|
||||||
import { createI18n } from 'vue-i18n';
|
import { createI18n } from 'vue-i18n';
|
||||||
import { createMemoryHistory, createRouter } from 'vue-router';
|
import { createMemoryHistory, createRouter } from 'vue-router';
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, expect, test } from 'vitest';
|
|
||||||
import { ensureUnit } from '../cssDimensions';
|
import { ensureUnit } from '../cssDimensions';
|
||||||
|
import { describe, expect, test } from 'vitest';
|
||||||
|
|
||||||
describe('cssDimensions', () => {
|
describe('cssDimensions', () => {
|
||||||
test.for([
|
test.for([
|
||||||
|
|||||||
@@ -16,10 +16,10 @@ limitations under the License.
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import Searchbar from '../features/search/components/Searchbar.vue';
|
import Searchbar from '../features/search/components/Searchbar.vue';
|
||||||
import { ref } from 'vue';
|
|
||||||
import { useRouter } from 'vue-router';
|
|
||||||
import { useI18n } from 'vue-i18n';
|
|
||||||
import logo from '@/assets/images/logo.svg';
|
import logo from '@/assets/images/logo.svg';
|
||||||
|
import { ref } from 'vue';
|
||||||
|
import { useI18n } from 'vue-i18n';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|||||||
+1
-1
@@ -14,9 +14,9 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { defineConfig } from 'vite';
|
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
import { defineConfig } from 'vite';
|
||||||
import { createHtmlPlugin } from 'vite-plugin-html';
|
import { createHtmlPlugin } from 'vite-plugin-html';
|
||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
|
|||||||
Reference in New Issue
Block a user