There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(plugin): allow multiple loads assets (#3741)
Quincy Qiu52102ee79284
diff --git a/apps/core/src/bootstrap/register-plugins.ts b/apps/core/src/bootstrap/register-plugins.tsindex 4170407ad5..f2e19d342a 100644--- a/apps/core/src/bootstrap/register-plugins.ts+++ b/apps/core/src/bootstrap/register-plugins.ts@@ -85,12 +85,13 @@ export const pluginRegisterPromise = Promise.all(if (assets.length > 0) {await Promise.all(assets.map(async (asset: string) => {+ const loadedAssetName = `${pluginName}_${asset}`;// todo(himself65): add assets into shadow dom- if (loadedAssets.has(asset)) {+ if (loadedAssets.has(loadedAssetName)) {return Promise.resolve();}if (asset.endsWith('.css')) {- loadedAssets.add(asset);+ loadedAssets.add(loadedAssetName);const res = await fetch(`${baseURL}/${asset}`);if (res.ok) {// todo: how to put css file into sandbox?diff --git a/plugins/vue-hello-world/src/app.vue b/plugins/vue-hello-world/src/app.vueindex 213c4984c6..081e5a7d3f 100644--- a/plugins/vue-hello-world/src/app.vue+++ b/plugins/vue-hello-world/src/app.vue@@ -10,4 +10,8 @@ const count = ref(0);</el-button></template>-<style scoped></style>+<style scoped>+.el-button {+ font-size: 30px;+}+</style>