Skip to content

Commit

Permalink
add user management
Browse files Browse the repository at this point in the history
  • Loading branch information
sunwei committed Nov 20, 2024
1 parent 8f2f901 commit a1eb735
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/frontmatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
'---',
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 5 additions & 2 deletions src/svelte/BuildDeploy.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
let deploySuccess = false;
let deployLink = '';
let previewFilename = '';
// 模拟构建过程
const startPreview = async () => {
previewFilename = fileInfo.name
buildProgress = 0;
buildSuccess = false;
Expand Down Expand Up @@ -97,15 +100,15 @@
{/if}

<!-- 部署完成后显示链接 -->
{#if buildSuccess}
{#if buildSuccess && previewFilename === fileInfo.name}
<div class="card is-selected">
<p>You can preview your site by clicking the link below:</p>
<a href={previewLink} target="_blank">{previewLink}</a>
</div>
{/if}

<div class="build-container">
{#if buildSuccess}
{#if buildSuccess && previewFilename === fileInfo.name}
<div class="card">
<button on:click={startDeploy}>Deploy</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"0.1.3": "0.15.0"
"0.1.4": "0.15.0"
}

0 comments on commit a1eb735

Please sign in to comment.