generated from Seekra/repository-template
Compare commits
99
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb43e2f49f
|
||
|
|
79267d0059
|
||
|
|
39f482fc37
|
||
|
|
70ad0420bb
|
||
|
|
641cc4956d
|
||
|
|
e0e2033fdf
|
||
|
|
e18c066629
|
||
|
|
edb63b0316
|
||
|
|
9a8e764f53
|
||
|
|
26a5783d19
|
||
|
|
880beeee07
|
||
|
|
151947b09c
|
||
|
|
4054d0793f
|
||
|
|
2d61e9f927
|
||
|
|
67ffd05566
|
||
|
|
b429074071
|
||
|
|
9dfd16d68d
|
||
|
|
fb0d80d7f6
|
||
|
|
bd30579923
|
||
|
|
d6e7104f82
|
||
|
|
24b4e45116
|
||
|
|
6b347bb845
|
||
|
|
c5a16d2797
|
||
|
|
f7f4de8341
|
||
|
|
cd4956fbe6
|
||
|
|
241ac889fc
|
||
|
|
d3f3ef37ed
|
||
|
|
c2402f9360
|
||
|
|
f6fdae6b0c
|
||
|
|
c7fe1f2f60
|
||
|
|
c7490d2e48
|
||
|
|
e1e5ca7a76
|
||
|
|
2eafa3c093
|
||
|
|
07901f9ab2
|
||
|
|
167ddbfb4e
|
||
|
|
b062015f23
|
||
|
|
e808ec9a26
|
||
|
|
3eddb7d196
|
||
|
|
d7ce212095
|
||
|
|
da330db355
|
||
|
|
f65b65c053
|
||
|
|
6fbdc87669
|
||
|
|
afdc98beb3
|
||
|
|
248adf40b0
|
||
|
|
d78beffabd
|
||
|
|
f6a0553b99
|
||
|
|
22311dc5c9
|
||
|
|
2fb747f587
|
||
|
|
0c6d6c76f4
|
||
|
|
4b6881808d
|
||
|
|
12d8c4fa23
|
||
|
|
c9cb0fce27
|
||
|
|
31fbfbde07
|
||
|
|
942645df68
|
||
|
|
1e283c7392
|
||
|
|
9cf2245217
|
||
|
|
3136f40530
|
||
|
|
62fbd5de3a
|
||
|
|
25d7ee0c6d
|
||
|
|
a0a9cac244
|
||
|
|
d02c1fb702
|
||
|
|
e4bd6df2d5
|
||
|
|
76b4887205
|
||
|
|
17351e9f44
|
||
|
|
5101450d59
|
||
|
|
139c6f4ef5
|
||
|
|
d63a0e5bca
|
||
|
|
5428006a4a
|
||
|
|
17629e0691
|
||
|
|
22dc39fe51
|
||
|
|
4a4b62936a
|
||
|
|
5efd3ac5b1
|
||
|
|
c11ab2a52c
|
||
|
|
9a193d28af
|
||
|
|
5979177650
|
||
|
|
e337e1db3e
|
||
|
|
81252bf95d
|
||
|
|
e278c51676
|
||
|
|
16db5394ad
|
||
|
|
a49383154f
|
||
|
|
7734bef1ef
|
||
|
|
ae84fd742c
|
||
|
|
0cd7f7e5a7
|
||
|
|
7152771a48
|
||
|
|
964c247098
|
||
|
|
493c705abc
|
||
|
|
c7d79efcc2
|
||
|
|
55164c3b2f
|
||
|
|
b245aa4a39
|
||
|
|
5b93f547f3
|
||
|
|
3e30e85354
|
||
|
|
f4d8952c54
|
||
|
|
2206b9952b
|
||
|
|
1b7b7cbc68
|
||
|
|
3bcd71d60c
|
||
|
|
cc7a562887
|
||
|
|
3f40e2142c
|
||
|
|
2917d04ffe
|
||
|
|
f1430622dd
|
@@ -5,3 +5,7 @@ The frontend of the search engine Seekra.
|
||||
## Setup
|
||||
|
||||
Please execute the setup script in `scripts/` for your platform when cloning the repository.
|
||||
|
||||
## Legal
|
||||
|
||||
After each update to the dependencies, please run the script `scripts/generate-license-files.js` to regenerate the third-party license files.
|
||||
+10
-2279
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Executable
+58
@@ -0,0 +1,58 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/*
|
||||
Copyright 2026 Seekra
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import fs from 'node:fs/promises';
|
||||
import { generateLicenseFile } from 'generate-license-file';
|
||||
|
||||
const packageJson = './package.json';
|
||||
const packageJsonBackup = `${packageJson}~`;
|
||||
|
||||
await generateLicenseFile(
|
||||
packageJson,
|
||||
'THIRD_PARTY_LICENSES'
|
||||
);
|
||||
|
||||
const pkg = JSON.parse(
|
||||
await fs.readFile(packageJson, 'utf-8')
|
||||
);
|
||||
|
||||
await fs.rename(packageJson, packageJsonBackup);
|
||||
|
||||
const devPackage = {
|
||||
...pkg,
|
||||
dependencies: pkg.devDependencies ?? {},
|
||||
devDependencies: {}
|
||||
};
|
||||
|
||||
/*
|
||||
The file including the dependencies for the current license file has
|
||||
to be always package.json due to a bug of generate-license file. See
|
||||
|
||||
https://github.com/TobyAndToby/generate-license-file/issues/752
|
||||
*/
|
||||
await fs.writeFile(
|
||||
packageJson,
|
||||
JSON.stringify(devPackage)
|
||||
);
|
||||
|
||||
await generateLicenseFile(
|
||||
packageJson,
|
||||
'./THIRD_PARTY_LICENSES_DEV'
|
||||
);
|
||||
|
||||
await fs.rename(packageJsonBackup, packageJson);
|
||||
+31
-15
@@ -18,21 +18,40 @@ limitations under the License.
|
||||
import Navbar from './features/nav/components/Navbar.vue';
|
||||
import Footer from './features/footer/components/Footer.vue';
|
||||
|
||||
import { updatePageTitle } from './router';
|
||||
import { useColorScheme } from './features/colorScheme/composables/useColorScheme';
|
||||
import { ref, provide, watch } from 'vue';
|
||||
import { ref, provide, watch, watchEffect } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
const { getColorScheme, updateColorScheme } = useColorScheme();
|
||||
const colorScheme = ref(getColorScheme());
|
||||
provide('colorScheme', colorScheme);
|
||||
watch(colorScheme, val => updateColorScheme(val))
|
||||
watch(colorScheme, (newValue) => {
|
||||
updateColorScheme(newValue);
|
||||
document.body.style.setProperty(colorScheme, {
|
||||
auto: 'normal',
|
||||
dark: 'dark',
|
||||
light: 'light'
|
||||
});
|
||||
if (newValue === 'dark') {
|
||||
document.body.classList.add('dark');
|
||||
} else {
|
||||
document.body.classList.remove('dark');
|
||||
}
|
||||
if (newValue === 'auto') {
|
||||
document.body.classList.add('color-scheme-auto');
|
||||
} else {
|
||||
document.body.classList.remove('color-scheme-auto');
|
||||
}
|
||||
});
|
||||
|
||||
watchEffect(() => updatePageTitle(route));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
:style="{ colorScheme: colorScheme === 'auto' ? 'normal' : (colorScheme === 'dark' ? 'dark' : 'light')}"
|
||||
:class="{ dark: colorScheme === 'dark', 'color-scheme-auto': colorScheme === 'auto' }"
|
||||
id="app-wrapper"
|
||||
>
|
||||
<div id="app-wrapper">
|
||||
<Navbar />
|
||||
|
||||
<router-view class="main-content" />
|
||||
@@ -46,6 +65,11 @@ watch(colorScheme, val => updateColorScheme(val))
|
||||
--main-content-padding-x: 30px;
|
||||
--main-content-padding-y: 40px;
|
||||
--main-content-padding: var(--main-content-padding-y) var(--main-content-padding-x);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--light-bg);
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
.main-content {
|
||||
@@ -57,12 +81,4 @@ watch(colorScheme, val => updateColorScheme(val))
|
||||
--main-content-padding-x: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
#app-wrapper {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--light-bg);
|
||||
color: var(--dark);
|
||||
}
|
||||
</style>
|
||||
@@ -15,6 +15,8 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
body {
|
||||
background-color: var(--light-bg);
|
||||
color: var(--dark);
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
#app-wrapper {
|
||||
body {
|
||||
--primary-color-l-8: oklch(0.897 0.202 260);
|
||||
--primary-color-l-7: oklch(0.847 0.202 260);
|
||||
--primary-color-l-6: oklch(0.797 0.202 260);
|
||||
@@ -87,7 +87,7 @@ limitations under the License.
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#app-wrapper.color-scheme-auto {
|
||||
body.color-scheme-auto {
|
||||
--dark-l-8: var(--white-d-8);
|
||||
--dark-l-7: var(--white-d-7);
|
||||
--dark-l-6: var(--white-d-6);
|
||||
@@ -121,7 +121,7 @@ limitations under the License.
|
||||
}
|
||||
}
|
||||
|
||||
#app-wrapper.dark {
|
||||
body.dark {
|
||||
--dark-l-8: var(--white-d-8);
|
||||
--dark-l-7: var(--white-d-7);
|
||||
--dark-l-6: var(--white-d-6);
|
||||
|
||||
Reference in New Issue
Block a user