mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 05:17:39 -07:00
Merge branch 'develop' into fix/post-import
This commit is contained in:
commit
e17dca2652
19 changed files with 112 additions and 96 deletions
13
.config/LICENSE
Normal file
13
.config/LICENSE
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Copyright 2023 Calckey
|
||||||
|
|
||||||
|
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.
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -25,6 +25,7 @@ coverage
|
||||||
!/.config/devenv.yml
|
!/.config/devenv.yml
|
||||||
!/.config/docker_example.env
|
!/.config/docker_example.env
|
||||||
!/.config/helm_values_example.yml
|
!/.config/helm_values_example.yml
|
||||||
|
!/.config/LICENSE
|
||||||
|
|
||||||
#docker dev config
|
#docker dev config
|
||||||
/dev/docker-compose.yml
|
/dev/docker-compose.yml
|
||||||
|
|
|
@ -137,7 +137,7 @@
|
||||||
- 👍 also triggers generic like/favorite
|
- 👍 also triggers generic like/favorite
|
||||||
- [Add additional background for acrylic popups if backdrop-filter is unsupported](https://github.com/misskey-dev/misskey/pull/8671)
|
- [Add additional background for acrylic popups if backdrop-filter is unsupported](https://github.com/misskey-dev/misskey/pull/8671)
|
||||||
- [Add parameters to MFM rotate](https://github.com/misskey-dev/misskey/pull/8549)
|
- [Add parameters to MFM rotate](https://github.com/misskey-dev/misskey/pull/8549)
|
||||||
- Many changes from [Foundkey](https://akkoma.dev/FoundKeyGang/Foundkey)
|
- Many changes from [FoundKey](https://akkoma.dev/FoundKeyGang/FoundKey)
|
||||||
- https://akkoma.dev/FoundKeyGang/FoundKey/commit/0ece67b04c3f0365057624c1068808276ccab981: refactor pages/auth.form.vue to composition API
|
- https://akkoma.dev/FoundKeyGang/FoundKey/commit/0ece67b04c3f0365057624c1068808276ccab981: refactor pages/auth.form.vue to composition API
|
||||||
- https://akkoma.dev/FoundKeyGang/FoundKey/commit/4bc9610d8bf5af736b5e89e4782395705de45d7d: remove unnecessary joins
|
- https://akkoma.dev/FoundKeyGang/FoundKey/commit/4bc9610d8bf5af736b5e89e4782395705de45d7d: remove unnecessary joins
|
||||||
- https://akkoma.dev/FoundKeyGang/FoundKey/commit/9ee609d70082f7a6dc119a5d83c0e7c5e1208676: enhance privacy of notes
|
- https://akkoma.dev/FoundKeyGang/FoundKey/commit/9ee609d70082f7a6dc119a5d83c0e7c5e1208676: enhance privacy of notes
|
||||||
|
|
|
@ -2704,7 +2704,7 @@ Co-committed-by: naskya <naskya@noreply.codeberg.org>
|
||||||
|
|
||||||
Passwords will be automatically re-hashed on sign-in. All new password hashes will be argon2 by default. This uses argon2id and is not configurable. In the very unlikely case someone has more specific needs, a fork is recommended. ChangeLog: Added Co-authored-by: Chloe Kudryavtsev <code@toast.bunkerlabs.net>
|
Passwords will be automatically re-hashed on sign-in. All new password hashes will be argon2 by default. This uses argon2id and is not configurable. In the very unlikely case someone has more specific needs, a fork is recommended. ChangeLog: Added Co-authored-by: Chloe Kudryavtsev <code@toast.bunkerlabs.net>
|
||||||
|
|
||||||
Breaks Calckey -> Misskey migration, but fixes Foundkey -> Calckey migration
|
Breaks Calckey -> Misskey migration, but fixes FoundKey -> Calckey migration
|
||||||
|
|
||||||
- Add argon
|
- Add argon
|
||||||
|
|
||||||
|
|
27
COPYING
27
COPYING
|
@ -1,15 +1,24 @@
|
||||||
Unless otherwise stated this repository is
|
Unless specified otherwise, the entirety of this repository is subject to the following:
|
||||||
Copyright © 2014-2022 syuilo and contributers
|
Copyright © 2014-2023 syuilo and contributors
|
||||||
Copyright © 2022 thatonecalculator and contributers
|
Copyright © 2022-2023 Kainoa Kanter and contributors
|
||||||
|
|
||||||
And is distributed under The GNU Affero General Public License Version 3, you should have received a copy of the license file as LICENSE.
|
And is distributed under The GNU Affero General Public License Version 3, you should have received a copy of the license file as LICENSE.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
Calckey includes several third-party Open-Source softwares.
|
These specific configuration directories:
|
||||||
|
|
||||||
Emoji keywords for Unicode 11 and below by Mu-An Chiou
|
- .config/
|
||||||
License: MIT
|
- custom/assets/
|
||||||
https://github.com/muan/emojilib/blob/master/LICENSE
|
|
||||||
|
and their contents are
|
||||||
|
Copyright © 2022-2023 Kainoa Kanter and contributors
|
||||||
|
|
||||||
|
And are distributed under The Apache License, Version 2.0, you should have received a copy of the license file as LICENSE in each specified directory.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Calckey includes several third-party open-source softwares and software libraries.
|
||||||
|
|
||||||
RsaSignature2017 implementation by Transmute Industries Inc
|
RsaSignature2017 implementation by Transmute Industries Inc
|
||||||
License: MIT
|
License: MIT
|
||||||
|
@ -18,3 +27,7 @@ https://github.com/transmute-industries/RsaSignature2017/blob/master/LICENSE
|
||||||
Machine learning model for sensitive images by Infinite Red, Inc.
|
Machine learning model for sensitive images by Infinite Red, Inc.
|
||||||
License: MIT
|
License: MIT
|
||||||
https://github.com/infinitered/nsfwjs/blob/master/LICENSE
|
https://github.com/infinitered/nsfwjs/blob/master/LICENSE
|
||||||
|
|
||||||
|
Licenses for all softwares and software libraries installed via the Node Package Manager ("npm") can be found by running the following shell command in the root directory of this repository:
|
||||||
|
|
||||||
|
pnpm licenses list
|
||||||
|
|
|
@ -216,9 +216,9 @@ Please don't use ElasticSearch unless you already have an ElasticSearch setup an
|
||||||
- Edit `.config/default.yml`, making sure to fill out required fields.
|
- Edit `.config/default.yml`, making sure to fill out required fields.
|
||||||
- Also copy and edit `.config/docker_example.env` to `.config/docker.env` if you're using Docker.
|
- Also copy and edit `.config/docker_example.env` to `.config/docker.env` if you're using Docker.
|
||||||
|
|
||||||
## 🚚 Migrating from Misskey to Calckey
|
## 🚚 Migrating from Misskey/FoundKey to Calckey
|
||||||
|
|
||||||
For migrating from Misskey v13, Misskey v12, and Foundkey, read [this document](https://codeberg.org/calckey/calckey/src/branch/develop/docs/migrate.md).
|
For migrating from Misskey v13, Misskey v12, and FoundKey, read [this document](https://codeberg.org/calckey/calckey/src/branch/develop/docs/migrate.md).
|
||||||
|
|
||||||
## 🌐 Web proxy
|
## 🌐 Web proxy
|
||||||
|
|
||||||
|
|
13
custom/assets/LICENSE
Normal file
13
custom/assets/LICENSE
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Copyright 2023 Calckey
|
||||||
|
|
||||||
|
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.
|
|
@ -1,10 +1,11 @@
|
||||||
# 🚚 Migrating from Misskey to Calckey
|
# 🚚 Migrating from Misskey/FoundKey to Calckey
|
||||||
|
|
||||||
The following procedure may not work depending on your environment and version of Misskey.
|
All the guides below assume you're starting in the root of the repo directory.
|
||||||
|
|
||||||
**Make sure you**
|
### Before proceeding
|
||||||
- **stopped all master and worker processes of Misskey.**
|
|
||||||
- **have backups of the database before performing any commands.**
|
- **Ensure you have stopped all master and worker processes of Misskey.**
|
||||||
|
- **Ensure you have backups of the database before performing any commands.**
|
||||||
|
|
||||||
## Misskey v13 and above
|
## Misskey v13 and above
|
||||||
|
|
||||||
|
@ -77,10 +78,11 @@ NODE_ENV=production pnpm run migrate
|
||||||
# build using prefered method
|
# build using prefered method
|
||||||
```
|
```
|
||||||
|
|
||||||
## Foundkey
|
## FoundKey
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd packages/backend
|
cd packages/backend
|
||||||
|
sed -i '12s/^/\/\//' ./migration/1663399074403-resize-comments-drive-file.js
|
||||||
|
|
||||||
LINE_NUM="$(npx typeorm migration:show -d ormconfig.js | grep -n uniformThemecolor1652859567549 | cut -d ':' -f 1)"
|
LINE_NUM="$(npx typeorm migration:show -d ormconfig.js | grep -n uniformThemecolor1652859567549 | cut -d ':' -f 1)"
|
||||||
NUM_MIGRATIONS="$(npx typeorm migration:show -d ormconfig.js | tail -n+"$LINE_NUM" | grep '\[X\]' | wc -l)"
|
NUM_MIGRATIONS="$(npx typeorm migration:show -d ormconfig.js | tail -n+"$LINE_NUM" | grep '\[X\]' | wc -l)"
|
||||||
|
@ -100,4 +102,4 @@ NODE_ENV=production pnpm run migrate
|
||||||
|
|
||||||
## Reverse
|
## Reverse
|
||||||
|
|
||||||
You ***cannot*** migrate back to Misskey from Calckey due to re-hashing passwords on signin with argon2. You can migrate from Calckey to Foundkey, though.
|
You ***cannot*** migrate back to Misskey from Calckey due to re-hashing passwords on signin with argon2. You can migrate from Calckey to FoundKey, though.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "14.0.0-dev60",
|
"version": "14.0.0-dev63",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -87,9 +87,9 @@
|
||||||
"vite": "4.4.2",
|
"vite": "4.4.2",
|
||||||
"vite-plugin-compression": "^0.5.1",
|
"vite-plugin-compression": "^0.5.1",
|
||||||
"vue": "3.3.4",
|
"vue": "3.3.4",
|
||||||
|
"vue-draggable-plus": "^0.2.2",
|
||||||
"vue-isyourpasswordsafe": "^2.0.0",
|
"vue-isyourpasswordsafe": "^2.0.0",
|
||||||
"vue-plyr": "^7.0.0",
|
"vue-plyr": "^7.0.0",
|
||||||
"vue-prism-editor": "2.0.0-alpha.2",
|
"vue-prism-editor": "2.0.0-alpha.2"
|
||||||
"vuedraggable": "4.1.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,9 @@
|
||||||
<template #default="{ width, height }">
|
<template #default="{ width, height }">
|
||||||
<div
|
<div
|
||||||
class="mk-cropper-dialog"
|
class="mk-cropper-dialog"
|
||||||
:style="`--vw: ${width}px; --vh: ${height}px;`"
|
:style="`--vw: ${width ? `${width}px` : '100%'}; --vh: ${
|
||||||
|
height ? `${height}px` : '100%'
|
||||||
|
};`"
|
||||||
>
|
>
|
||||||
<Transition name="fade">
|
<Transition name="fade">
|
||||||
<div v-if="loading" class="loading">
|
<div v-if="loading" class="loading">
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-show="files.length != 0" class="skeikyzd">
|
<div v-show="files.length != 0" class="skeikyzd">
|
||||||
<XDraggable
|
<VueDraggable
|
||||||
v-model="_files"
|
v-model="_files"
|
||||||
class="files"
|
class="files"
|
||||||
item-key="id"
|
item-key="id"
|
||||||
|
@ -25,22 +25,21 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</XDraggable>
|
</VueDraggable>
|
||||||
<p class="remain">{{ 16 - files.length }}/16</p>
|
<p class="remain">{{ 16 - files.length }}/16</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, defineAsyncComponent } from "vue";
|
import { defineComponent, defineAsyncComponent } from "vue";
|
||||||
|
import { VueDraggable } from "vue-draggable-plus";
|
||||||
import MkDriveFileThumbnail from "@/components/MkDriveFileThumbnail.vue";
|
import MkDriveFileThumbnail from "@/components/MkDriveFileThumbnail.vue";
|
||||||
import * as os from "@/os";
|
import * as os from "@/os";
|
||||||
import { i18n } from "@/i18n";
|
import { i18n } from "@/i18n";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
XDraggable: defineAsyncComponent(() =>
|
VueDraggable,
|
||||||
import("vuedraggable").then((x) => x.default),
|
|
||||||
),
|
|
||||||
MkDriveFileThumbnail,
|
MkDriveFileThumbnail,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
i18n.ts.close
|
i18n.ts.close
|
||||||
}}</MkButton>
|
}}</MkButton>
|
||||||
</header>
|
</header>
|
||||||
<XDraggable
|
<VueDraggable
|
||||||
v-model="widgets_"
|
v-model="widgets_"
|
||||||
item-key="id"
|
item-key="id"
|
||||||
handle=".handle"
|
handle=".handle"
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</XDraggable>
|
</VueDraggable>
|
||||||
</template>
|
</template>
|
||||||
<component
|
<component
|
||||||
:is="`mkw-${widget.name}`"
|
:is="`mkw-${widget.name}`"
|
||||||
|
@ -78,14 +78,13 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { defineAsyncComponent, reactive, ref, computed } from "vue";
|
import { defineAsyncComponent, reactive, ref, computed } from "vue";
|
||||||
import { v4 as uuid } from "uuid";
|
import { v4 as uuid } from "uuid";
|
||||||
|
import { VueDraggable } from "vue-draggable-plus";
|
||||||
import MkSelect from "@/components/form/select.vue";
|
import MkSelect from "@/components/form/select.vue";
|
||||||
import MkButton from "@/components/MkButton.vue";
|
import MkButton from "@/components/MkButton.vue";
|
||||||
import { widgets as widgetDefs } from "@/widgets";
|
import { widgets as widgetDefs } from "@/widgets";
|
||||||
import * as os from "@/os";
|
import * as os from "@/os";
|
||||||
import { i18n } from "@/i18n";
|
import { i18n } from "@/i18n";
|
||||||
|
|
||||||
const XDraggable = defineAsyncComponent(() => import("vuedraggable"));
|
|
||||||
|
|
||||||
type Widget = {
|
type Widget = {
|
||||||
name: string;
|
name: string;
|
||||||
id: string;
|
id: string;
|
||||||
|
|
|
@ -101,8 +101,9 @@
|
||||||
><Mfm
|
><Mfm
|
||||||
:text="'@freeplay@calckey.social (UI/UX)'"
|
:text="'@freeplay@calckey.social (UI/UX)'"
|
||||||
/></FormLink>
|
/></FormLink>
|
||||||
<FormLink to="/@nmkj@calckey.jp"
|
<FormLink to="/@namekuji@calckey.social"
|
||||||
><Mfm :text="'@nmkj@calckey.jp (Backend)'"
|
><Mfm
|
||||||
|
:text="'@namekuji@calckey.social (Backend)'"
|
||||||
/></FormLink>
|
/></FormLink>
|
||||||
<FormLink to="/@dev@post.naskya.net"
|
<FormLink to="/@dev@post.naskya.net"
|
||||||
><Mfm :text="'@dev@post.naskya.net (Backend)'"
|
><Mfm :text="'@dev@post.naskya.net (Backend)'"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<XDraggable
|
<VueDraggable
|
||||||
v-model="blocks"
|
v-model="blocks"
|
||||||
tag="div"
|
tag="div"
|
||||||
item-key="id"
|
item-key="id"
|
||||||
|
@ -17,11 +17,12 @@
|
||||||
@remove="() => removeItem(element)"
|
@remove="() => removeItem(element)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XDraggable>
|
</VueDraggable>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, defineAsyncComponent } from "vue";
|
import { defineComponent, defineAsyncComponent } from "vue";
|
||||||
|
import { VueDraggable } from "vue-draggable-plus";
|
||||||
import XSection from "./els/page-editor.el.section.vue";
|
import XSection from "./els/page-editor.el.section.vue";
|
||||||
import XText from "./els/page-editor.el.text.vue";
|
import XText from "./els/page-editor.el.text.vue";
|
||||||
import XTextarea from "./els/page-editor.el.textarea.vue";
|
import XTextarea from "./els/page-editor.el.textarea.vue";
|
||||||
|
@ -41,9 +42,7 @@ import * as os from "@/os";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
XDraggable: defineAsyncComponent(() =>
|
VueDraggable,
|
||||||
import("vuedraggable").then((x) => x.default),
|
|
||||||
),
|
|
||||||
XSection,
|
XSection,
|
||||||
XText,
|
XText,
|
||||||
XImage,
|
XImage,
|
||||||
|
|
|
@ -118,7 +118,7 @@
|
||||||
|
|
||||||
<div v-else-if="tab === 'variables'">
|
<div v-else-if="tab === 'variables'">
|
||||||
<div class="qmuvgica">
|
<div class="qmuvgica">
|
||||||
<XDraggable
|
<VueDraggable
|
||||||
v-show="variables.length > 0"
|
v-show="variables.length > 0"
|
||||||
v-model="variables"
|
v-model="variables"
|
||||||
tag="div"
|
tag="div"
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
@remove="() => removeVariable(element)"
|
@remove="() => removeVariable(element)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XDraggable>
|
</VueDraggable>
|
||||||
|
|
||||||
<MkButton
|
<MkButton
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
|
@ -174,6 +174,7 @@ import { blockDefs } from "@/scripts/hpml/index";
|
||||||
import { HpmlTypeChecker } from "@/scripts/hpml/type-checker";
|
import { HpmlTypeChecker } from "@/scripts/hpml/type-checker";
|
||||||
import { url } from "@/config";
|
import { url } from "@/config";
|
||||||
import { collectPageVars } from "@/scripts/collect-page-vars";
|
import { collectPageVars } from "@/scripts/collect-page-vars";
|
||||||
|
import { VueDraggable } from "vue-draggable-plus";
|
||||||
import * as os from "@/os";
|
import * as os from "@/os";
|
||||||
import { selectFile } from "@/scripts/select-file";
|
import { selectFile } from "@/scripts/select-file";
|
||||||
import { mainRouter } from "@/router";
|
import { mainRouter } from "@/router";
|
||||||
|
@ -181,10 +182,6 @@ import { i18n } from "@/i18n";
|
||||||
import { definePageMetadata } from "@/scripts/page-metadata";
|
import { definePageMetadata } from "@/scripts/page-metadata";
|
||||||
import { $i } from "@/account";
|
import { $i } from "@/account";
|
||||||
|
|
||||||
const XDraggable = defineAsyncComponent(() =>
|
|
||||||
import("vuedraggable").then((x) => x.default),
|
|
||||||
);
|
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
initPageId?: string;
|
initPageId?: string;
|
||||||
initPageName?: string;
|
initPageName?: string;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
i18n.ts.reactionSettingDescription
|
i18n.ts.reactionSettingDescription
|
||||||
}}</template>
|
}}</template>
|
||||||
<div v-panel style="border-radius: 6px">
|
<div v-panel style="border-radius: 6px">
|
||||||
<XDraggable
|
<VueDraggable
|
||||||
v-model="reactions"
|
v-model="reactions"
|
||||||
class="zoaiodol"
|
class="zoaiodol"
|
||||||
:item-key="(item) => item"
|
:item-key="(item) => item"
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
<i class="ph-plus ph-bold ph-lg"></i>
|
<i class="ph-plus ph-bold ph-lg"></i>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
</XDraggable>
|
</VueDraggable>
|
||||||
</div>
|
</div>
|
||||||
<template #caption
|
<template #caption
|
||||||
>{{ i18n.ts.reactionSettingDescription2 }}
|
>{{ i18n.ts.reactionSettingDescription2 }}
|
||||||
|
@ -124,7 +124,7 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { defineAsyncComponent, watch } from "vue";
|
import { defineAsyncComponent, watch } from "vue";
|
||||||
import XDraggable from "vuedraggable";
|
import { VueDraggable } from "vue-draggable-plus";
|
||||||
import FormInput from "@/components/form/input.vue";
|
import FormInput from "@/components/form/input.vue";
|
||||||
import FormRadios from "@/components/form/radios.vue";
|
import FormRadios from "@/components/form/radios.vue";
|
||||||
import FromSlot from "@/components/form/slot.vue";
|
import FromSlot from "@/components/form/slot.vue";
|
||||||
|
|
|
@ -23,9 +23,9 @@ const extensions = [
|
||||||
];
|
];
|
||||||
|
|
||||||
export default defineConfig(({ command, mode }) => {
|
export default defineConfig(({ command, mode }) => {
|
||||||
fs.mkdirSync(__dirname + "/../../built", { recursive: true });
|
fs.mkdirSync(`${__dirname}/../../built`, { recursive: true });
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
__dirname + "/../../built/meta.json",
|
`${__dirname}/../../built/meta.json`,
|
||||||
JSON.stringify({ version: meta.version }),
|
JSON.stringify({ version: meta.version }),
|
||||||
"utf-8",
|
"utf-8",
|
||||||
);
|
);
|
||||||
|
@ -40,15 +40,16 @@ export default defineConfig(({ command, mode }) => {
|
||||||
pluginJson5(),
|
pluginJson5(),
|
||||||
viteCompression({
|
viteCompression({
|
||||||
algorithm: "brotliCompress",
|
algorithm: "brotliCompress",
|
||||||
|
verbose: false,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions,
|
extensions,
|
||||||
alias: {
|
alias: {
|
||||||
"@/": __dirname + "/src/",
|
"@/": `${__dirname}/src/`,
|
||||||
"/client-assets/": __dirname + "/assets/",
|
"/client-assets/": `${__dirname}/assets/`,
|
||||||
"/static-assets/": __dirname + "/../backend/assets/",
|
"/static-assets/": `${__dirname}/../backend/assets/`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -82,7 +83,7 @@ export default defineConfig(({ command, mode }) => {
|
||||||
},
|
},
|
||||||
cssCodeSplit: true,
|
cssCodeSplit: true,
|
||||||
assetsInlineLimit: 0,
|
assetsInlineLimit: 0,
|
||||||
outDir: __dirname + "/../../built/_client_dist_",
|
outDir: `${__dirname}/../../built/_client_dist_`,
|
||||||
assetsDir: ".",
|
assetsDir: ".",
|
||||||
emptyOutDir: false,
|
emptyOutDir: false,
|
||||||
sourcemap: process.env.NODE_ENV === "development",
|
sourcemap: process.env.NODE_ENV === "development",
|
||||||
|
@ -94,5 +95,7 @@ export default defineConfig(({ command, mode }) => {
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
auto: true,
|
auto: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
logLevel: "warn",
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -910,6 +910,9 @@ importers:
|
||||||
vue:
|
vue:
|
||||||
specifier: 3.3.4
|
specifier: 3.3.4
|
||||||
version: 3.3.4
|
version: 3.3.4
|
||||||
|
vue-draggable-plus:
|
||||||
|
specifier: ^0.2.2
|
||||||
|
version: 0.2.2
|
||||||
vue-isyourpasswordsafe:
|
vue-isyourpasswordsafe:
|
||||||
specifier: ^2.0.0
|
specifier: ^2.0.0
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
|
@ -919,9 +922,6 @@ importers:
|
||||||
vue-prism-editor:
|
vue-prism-editor:
|
||||||
specifier: 2.0.0-alpha.2
|
specifier: 2.0.0-alpha.2
|
||||||
version: 2.0.0-alpha.2(vue@3.3.4)
|
version: 2.0.0-alpha.2(vue@3.3.4)
|
||||||
vuedraggable:
|
|
||||||
specifier: 4.1.0
|
|
||||||
version: 4.1.0(vue@3.3.4)
|
|
||||||
|
|
||||||
packages/megalodon:
|
packages/megalodon:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -5446,7 +5446,7 @@ packages:
|
||||||
/axios@0.24.0:
|
/axios@0.24.0:
|
||||||
resolution: {integrity: sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==}
|
resolution: {integrity: sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
follow-redirects: 1.15.2
|
follow-redirects: 1.15.2(debug@4.3.4)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- debug
|
- debug
|
||||||
dev: false
|
dev: false
|
||||||
|
@ -5472,7 +5472,7 @@ packages:
|
||||||
/axios@1.4.0:
|
/axios@1.4.0:
|
||||||
resolution: {integrity: sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==}
|
resolution: {integrity: sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
follow-redirects: 1.15.2
|
follow-redirects: 1.15.2(debug@4.3.4)
|
||||||
form-data: 4.0.0
|
form-data: 4.0.0
|
||||||
proxy-from-env: 1.1.0
|
proxy-from-env: 1.1.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -7137,17 +7137,6 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
ms: 2.0.0
|
ms: 2.0.0
|
||||||
|
|
||||||
/debug@3.2.7:
|
|
||||||
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
|
|
||||||
peerDependencies:
|
|
||||||
supports-color: '*'
|
|
||||||
peerDependenciesMeta:
|
|
||||||
supports-color:
|
|
||||||
optional: true
|
|
||||||
dependencies:
|
|
||||||
ms: 2.1.3
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/debug@3.2.7(supports-color@8.1.1):
|
/debug@3.2.7(supports-color@8.1.1):
|
||||||
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
|
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -7158,7 +7147,6 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
ms: 2.1.3
|
ms: 2.1.3
|
||||||
supports-color: 8.1.1
|
supports-color: 8.1.1
|
||||||
dev: true
|
|
||||||
|
|
||||||
/debug@4.3.3:
|
/debug@4.3.3:
|
||||||
resolution: {integrity: sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==}
|
resolution: {integrity: sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==}
|
||||||
|
@ -8742,16 +8730,6 @@ packages:
|
||||||
tabbable: 6.2.0
|
tabbable: 6.2.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/follow-redirects@1.15.2:
|
|
||||||
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}
|
|
||||||
engines: {node: '>=4.0'}
|
|
||||||
peerDependencies:
|
|
||||||
debug: '*'
|
|
||||||
peerDependenciesMeta:
|
|
||||||
debug:
|
|
||||||
optional: true
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/follow-redirects@1.15.2(debug@4.3.4):
|
/follow-redirects@1.15.2(debug@4.3.4):
|
||||||
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}
|
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}
|
||||||
engines: {node: '>=4.0'}
|
engines: {node: '>=4.0'}
|
||||||
|
@ -9693,7 +9671,7 @@ packages:
|
||||||
engines: {node: '>= 4.5.0'}
|
engines: {node: '>= 4.5.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
agent-base: 4.3.0
|
agent-base: 4.3.0
|
||||||
debug: 3.2.7
|
debug: 3.2.7(supports-color@8.1.1)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: false
|
dev: false
|
||||||
|
@ -11844,7 +11822,7 @@ packages:
|
||||||
resolution: {integrity: sha512-UqyYyH5YEXaJrf9S8E23GoJFQZXkBVJ9zYYMPGz919MSX1KuvAcycIuS0ci150HCoPf4XQVhQ84Qf8xRPWxFaQ==}
|
resolution: {integrity: sha512-UqyYyH5YEXaJrf9S8E23GoJFQZXkBVJ9zYYMPGz919MSX1KuvAcycIuS0ci150HCoPf4XQVhQ84Qf8xRPWxFaQ==}
|
||||||
engines: {node: '>= 7.6.0'}
|
engines: {node: '>= 7.6.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 3.2.7
|
debug: 3.2.7(supports-color@8.1.1)
|
||||||
koa-send: 5.0.1
|
koa-send: 5.0.1
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
@ -12891,7 +12869,7 @@ packages:
|
||||||
engines: {node: '>= 4.4.x'}
|
engines: {node: '>= 4.4.x'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 3.2.7
|
debug: 3.2.7(supports-color@8.1.1)
|
||||||
iconv-lite: 0.4.24
|
iconv-lite: 0.4.24
|
||||||
sax: 1.2.4
|
sax: 1.2.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -15438,10 +15416,6 @@ packages:
|
||||||
is-plain-obj: 1.1.0
|
is-plain-obj: 1.1.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/sortablejs@1.14.0:
|
|
||||||
resolution: {integrity: sha512-pBXvQCs5/33fdN1/39pPL0NZF20LeRbLQ5jtnheIPN9JQAaufGjKdWduZn4U7wCtVuzKhmRkI0DFYHYRbB2H1w==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/source-map-js@1.0.2:
|
/source-map-js@1.0.2:
|
||||||
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
|
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
|
@ -17135,6 +17109,15 @@ packages:
|
||||||
resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==}
|
resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/vue-draggable-plus@0.2.2:
|
||||||
|
resolution: {integrity: sha512-Mp9T7FK/N8anWr1Bi3RKQ3GETRu/pCHz+upvd0CTHY9Rq4sITfVtpoKsMUkasg55svx5sw8B+yeQob3WfaqqzQ==}
|
||||||
|
peerDependencies:
|
||||||
|
'@vue/composition-api': '*'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
'@vue/composition-api':
|
||||||
|
optional: true
|
||||||
|
dev: true
|
||||||
|
|
||||||
/vue-isyourpasswordsafe@2.0.0:
|
/vue-isyourpasswordsafe@2.0.0:
|
||||||
resolution: {integrity: sha512-j3ORj18R9AgFiP2UOM35KuZbSeJAUiwCSyeRBFN3CGFYTJSKsxqU9qGqOHOz6OhLAYKMTin8JOmqugAbF9O+Bg==}
|
resolution: {integrity: sha512-j3ORj18R9AgFiP2UOM35KuZbSeJAUiwCSyeRBFN3CGFYTJSKsxqU9qGqOHOz6OhLAYKMTin8JOmqugAbF9O+Bg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -17174,15 +17157,6 @@ packages:
|
||||||
'@vue/shared': 3.3.4
|
'@vue/shared': 3.3.4
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/vuedraggable@4.1.0(vue@3.3.4):
|
|
||||||
resolution: {integrity: sha512-FU5HCWBmsf20GpP3eudURW3WdWTKIbEIQxh9/8GE806hydR9qZqRRxRE3RjqX7PkuLuMQG/A7n3cfj9rCEchww==}
|
|
||||||
peerDependencies:
|
|
||||||
vue: ^3.0.1
|
|
||||||
dependencies:
|
|
||||||
sortablejs: 1.14.0
|
|
||||||
vue: 3.3.4
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/w3c-hr-time@1.0.2:
|
/w3c-hr-time@1.0.2:
|
||||||
resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==}
|
resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==}
|
||||||
deprecated: Use your platform's native performance.now() and performance.timeOrigin.
|
deprecated: Use your platform's native performance.now() and performance.timeOrigin.
|
||||||
|
|
Loading…
Reference in a new issue