From a1eb735822ed30bce3976f32a1c1f2e89a01da1c Mon Sep 17 00:00:00 2001 From: sunwei Date: Wed, 20 Nov 2024 19:16:11 +0800 Subject: [PATCH] add user management --- manifest.json | 4 ++-- package.json | 2 +- src/frontmatter.ts | 2 +- src/main.ts | 2 +- src/svelte/BuildDeploy.svelte | 7 +++++-- versions.json | 2 +- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/manifest.json b/manifest.json index bdae694..352f020 100644 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { "id": "mdfriday", "name": "Friday", - "version": "0.1.3", + "version": "0.1.4", "minAppVersion": "0.15.0", "description": "Notes to Website. Friday helps you turn Markdown documents into websites in minutes.", "author": "sunwei", "authorUrl": "https://sunwei.xyz", "isDesktopOnly": true -} +} \ No newline at end of file diff --git a/package.json b/package.json index dd35975..f8132e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-friday-plugin", - "version": "0.1.3", + "version": "0.1.4", "description": "Friday is an Obsidian plugin that empowers users to focus on content creation by writing Markdown files, while we handle the distribution. From creating websites to content deployment, Friday serves as a creative output assistant, helping users turn their work into publishable sites with ease.", "main": "main.js", "scripts": { diff --git a/src/frontmatter.ts b/src/frontmatter.ts index f80d749..53529e7 100644 --- a/src/frontmatter.ts +++ b/src/frontmatter.ts @@ -3,7 +3,7 @@ export const FM_SITE_ID = 'site'; export const FM_CONTENT = 'content'; export const FM_CONTENT_EMPTY = 'empty'; export const FM_THEME = 'theme'; -export const FM_DEFAULT_THEME = 'github.com/mdfriday/theme-manual-of-me'; +export const FM_DEFAULT_THEME = 'github.com/mdfriday/theme-long-teng'; const basicFrontMatter = [ '---', diff --git a/src/main.ts b/src/main.ts index 6388518..f5d3f51 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,7 +20,7 @@ const DEFAULT_SETTINGS: FridaySettings = { } export const FRIDAY_ICON = 'dice-5'; -export const API_URL_DEV = 'https://mdfriday.sunwei.xyz'; +export const API_URL_DEV = 'http://127.0.0.1:1314'; export const API_URL_PRO = 'https://mdfriday.sunwei.xyz'; export default class FridayPlugin extends Plugin { diff --git a/src/svelte/BuildDeploy.svelte b/src/svelte/BuildDeploy.svelte index 998d9be..0f384f6 100644 --- a/src/svelte/BuildDeploy.svelte +++ b/src/svelte/BuildDeploy.svelte @@ -18,8 +18,11 @@ let deploySuccess = false; let deployLink = ''; + let previewFilename = ''; + // 模拟构建过程 const startPreview = async () => { + previewFilename = fileInfo.name buildProgress = 0; buildSuccess = false; @@ -97,7 +100,7 @@ {/if} -{#if buildSuccess} +{#if buildSuccess && previewFilename === fileInfo.name}

You can preview your site by clicking the link below:

{previewLink} @@ -105,7 +108,7 @@ {/if}
- {#if buildSuccess} + {#if buildSuccess && previewFilename === fileInfo.name}
diff --git a/versions.json b/versions.json index 8213519..46f7aa9 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "0.1.3": "0.15.0" + "0.1.4": "0.15.0" }