Quicksave

This commit is contained in:
Mawoka
2025-08-22 12:33:15 +02:00
parent bd659895ad
commit 51f1d74cf2
45 changed files with 15682 additions and 2572 deletions
-23
View File
@@ -1,23 +0,0 @@
<!--
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
SPDX-License-Identifier: MPL-2.0
-->
<script lang="ts">
import { browser } from '$app/environment';
import { Map, Marker } from '@beyonk/svelte-mapbox';
export let lng: number;
export let lat: number;
export let markerText: string;
export let zoom = 12;
let center: [number, number];
$: center = [lng, lat];
</script>
{#if browser}
<Map accessToken={import.meta.env.VITE_MAPBOX_ACCESS_TOKEN} bind:center bind:zoom>
<Marker bind:lat bind:lng bind:label={markerText} />
</Map>
{/if}
+3 -2
View File
@@ -45,7 +45,7 @@ export class I18nService {
initialize(): void {
this.i18n.use(LanguageDetector).init({
// lng: INITIAL_LANGUAGE,
compatibilityJSON: 'v3',
compatibilityJSON: 'v4',
fallbackLng: 'en',
debug: false,
defaultNS: 'translation',
@@ -61,7 +61,8 @@ export class I18nService {
detection: {
order: ['querystring', 'cookie', 'localStorage', 'navigator'],
lookupQuerystring: 'lng',
lookupLocalStorage: 'language'
lookupLocalStorage: 'language',
lookupSessionStorage: true
}
});
this.i18n.addResourceBundle('en', 'translation', en);
+32 -2
View File
@@ -5,7 +5,19 @@ SPDX-License-Identifier: MPL-2.0
-->
<script lang="ts">
import BalloonEditor from '@ckeditor/ckeditor5-build-balloon';
import {
BalloonEditor,
Essentials,
Autoformat,
Bold,
Italic,
Paragraph,
TextTransformation,
Superscript,
Subscript,
Strikethrough
} from 'ckeditor5';
import 'ckeditor5/ckeditor5.css';
// import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
// import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
// import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic.js';
@@ -54,8 +66,26 @@ SPDX-License-Identifier: MPL-2.0
};*/
let editor;
onMount(() => {
class Editor extends BalloonEditor {
static builtinPlugins = [
Essentials,
Autoformat,
Bold,
Italic,
Paragraph,
TextTransformation,
Strikethrough,
Subscript,
Superscript
];
static defaultConfig = {
language: 'en'
};
}
// BalloonEditor.builtinPlugins = [Strikethrough]
BalloonEditor.create(html_el, {
Editor.create(html_el, {
licenseKey: 'GPL',
// plugins: [Strikethrough],
config: {
enterMode: BalloonEditor.ENTER_DIV,