Skip to content

Commit

Permalink
Merge pull request #7 from qianmoQ/dev
Browse files Browse the repository at this point in the history
[Released] Release for 1.0.0
  • Loading branch information
qianmoQ committed Nov 5, 2023
2 parents b836069 + 7d17e07 commit 398c808
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish binary

on:
workflow_dispatch:

jobs:
publish-tauri:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 18
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: install app dependencies and build it
run: yarn && yarn build && npm -g install pnpm
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: __VERSION__
releaseName: '__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: false
prerelease: false
Binary file added public/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ rusqlite = "0.29.0"
log = "0.4.20"
lazy_static = { version = "1.4.0", features = [] }
parking_lot = { version = "0.12.1", features = [] }
libsqlite3-sys = { version = "^0.26.0", features = ["bundled"] }

[features]
# this feature is used for production builds or when `devPath` points to the filesystem
Expand Down
14 changes: 10 additions & 4 deletions src/layout/compoments/LayoutContent.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template>
<div>
<TinyLayout :style="{backgroundColor: '#FFFFFF', height: height + 'px'}">
<MdPreview v-if="tabs.length === 0"
:modelValue="describe.describe">
</MdPreview>
<TinyTabs v-model="activeTab"
tab-style="card"
:with-close="true"
Expand Down Expand Up @@ -46,12 +49,14 @@ import {
TabItem as TinyTabItem,
Tabs as TinyTabs
} from '@opentiny/vue'
import MarkdownEditor from "../../components/MarkdownEditor.vue";
import {Note} from "../../model/note.ts";
import MarkdownEditor from "../../components/MarkdownEditor.vue"
import {MdPreview} from 'md-editor-v3'
import {Note} from "../../model/note.ts"
import describe from '../../note/home.ts'
export default defineComponent({
name: 'LayoutContent',
components: {MarkdownEditor, TinyLayout, TinyTabs, TinyTabItem, TinyBadge, TinyInput},
components: {MarkdownEditor, TinyLayout, TinyTabs, TinyTabItem, TinyBadge, TinyInput, MdPreview},
props: {
height: {
type: Number
Expand All @@ -67,7 +72,8 @@ export default defineComponent({
return {
activeTab: '',
activeNote: this.note,
tabs: Array<Note>()
tabs: Array<Note>(),
describe: describe
}
},
methods: {
Expand Down
31 changes: 31 additions & 0 deletions src/note/home.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const describe = `
<div align="center">
<img width='100' height='100' style="margin-bottom: -30px;" src="/icon.png" />
# Notepad (Incubator)
Notepad 是一个开源软件,使用 Rust 语言进行开发。它是一款简洁的文本编辑器,适用于各种操作系统平台。该软件的设计理念是提供一个轻量级、高效的编辑环境,以满足用户对于编辑文本文件的基本需求。
---
欢迎感谢大家使用 Notepad 编辑器。如果大家有兴趣欢迎到我们的官方仓库为项目点击一个 Star 来支持。我们的项目仓库地址是:
| 仓库名 | 地址 |
| - | - |
| GitHub | [devlive-community/incubator-notepad](https://github.com/devlive-community/incubator-notepad) |
| Gitee | [devlive-community/incubator-notepad](https://gitee.com/devlive-community/notepad) |
**非常感谢以下合作伙伴对我们的支持**
| 图标 | 名称 | 地址 |
| - | - | - |
| ![](https://res.hc-cdn.com/tinyui-design-common/1.0.5.20230830165022/assets/opentiny-logo.svg) | OpenTiny | [opentiny.design](https://opentiny.design/) |
| md-editor-v3 | md-editor-v3 | [imzbf.github.io](https://imzbf.github.io/md-editor-v3/) |
</div>
`

export default {
describe: describe
}

0 comments on commit 398c808

Please sign in to comment.