Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gudzpoz committed Mar 22, 2024
1 parent 2e95042 commit cf4e8ce
Show file tree
Hide file tree
Showing 9 changed files with 1,475 additions and 2,633 deletions.
17 changes: 8 additions & 9 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
// https://vitepress.dev/guide/custom-theme
import { defineAsyncComponent, h } from 'vue';
import { defineAsyncComponent } from 'vue';
import Theme from 'vitepress/theme';

import './style.css';

export default {
const enhanced: typeof Theme = {
...Theme,
Layout: () => h(Theme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
}),
enhanceApp({ app }) {
app.component('BrocatelEditor', defineAsyncComponent(async () => (await import('@brocatel/mde')).BrocatelEditor));
// @ts-ignore
app.component('MdExample', defineAsyncComponent(() => import('../components/MdExample.vue')));
async enhanceApp({ app }) {
if (!(import.meta as any as { env: Record<string, any> }).env.SSR) {
app.component('BrocatelEditor', defineAsyncComponent(async () => (await import('@brocatel/mde')).BrocatelEditor));
app.component('MdExample', defineAsyncComponent(() => import('../components/MdExample.vue')));
}
},
};
export default enhanced;
23 changes: 15 additions & 8 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ layout: home

hero:
name: "Brocatel"
text: "Write your game plots in Markdown and Lua"
tagline: Fully customizable.
text: "Embeddable Scripting Language for Interactive Storytelling"
tagline: In Markdown and Lua
actions:
- theme: brand
text: Getting Started
Expand All @@ -15,18 +15,25 @@ hero:
link: /roadmap

features:
- title: Portability
- title: Easy to Use
details: |
It is just Markdown (with Lua variables).
Familiar with Markdown headings, links and lists?
You're good to go!
- title: Portable
details: |
<a href="https://www.lua.org/about.html">Lua</a> being Lua,
it runs on most devices that you can possibly imagine,
even in browsers and consoles.
- title: Fully Customizable
details: |
The powerful macro system allows literally any compile-time manipulation
of the Markdown structure.
- title: Localization
details: |
Designed with internalization needs in mind.
TBD: Easily integrable with <a href="https://www.gnu.org/software/gettext/">GNU gettext</a>.
A context-rich [POT file](https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html)
is generated upon compilation for integration with
<a href="https://www.gnu.org/software/gettext/">GNU gettext</a>.
- title: Fully Customizable
details: |
The macro system allows literally any compile-time manipulation
of the Markdown structure.
---

31 changes: 16 additions & 15 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@brocatel/docs",
"version": "1.0.0",
"description": "",
"type": "module",
"private": true,
"main": "index.js",
"scripts": {
Expand All @@ -14,22 +15,22 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@rushstack/eslint-patch": "^1.3.3",
"@types/node": "^18.17.12",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"@vue/eslint-config-typescript": "^11.0.3",
"@vue/tsconfig": "^0.4.0",
"eslint": "^8.48.0",
"@rushstack/eslint-patch": "^1.8.0",
"@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.1",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-vue": "^9.17.0",
"typescript": "^5.2.2",
"vite-node": "^0.32.4",
"vitepress": "1.0.0-beta.2",
"vue": "^3.3.4",
"vue-tsc": "^1.8.8"
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-vue": "^9.23.0",
"typescript": "^5.4.3",
"vite-node": "^1.4.0",
"vitepress": "1.0.1",
"vue": "^3.4.21",
"vue-tsc": "^2.0.7"
},
"dependencies": {
"@brocatel/mdc": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ES2016",
"useDefineForClassFields": true,
"module": "CommonJS",
"module": "ES2020",
"esModuleInterop": true,
"skipLibCheck": true,

Expand Down
24 changes: 12 additions & 12 deletions md/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
"author": "gudzpoz",
"license": "MIT",
"devDependencies": {
"@types/mdast": "^3.0.12",
"@types/node": "^18.18.0",
"@types/unist": "^2.0.8",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"eslint": "^8.50.0",
"@types/mdast": "^3.0.15",
"@types/node": "^20.11.30",
"@types/unist": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite-node": "^0.34.5",
"vite-plugin-dts": "^3.5.4"
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-plugin-import": "^2.29.1",
"typescript": "^5.4.3",
"vite": "^5.2.2",
"vite-node": "^1.4.0",
"vite-plugin-dts": "^3.7.3"
},
"dependencies": {
"github-slugger": "^2.0.0",
Expand Down
36 changes: 18 additions & 18 deletions mdc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@
"author": "gudzpoz",
"license": "MIT",
"devDependencies": {
"@types/mdast": "^3.0.12",
"@types/node": "^18.17.12",
"@types/unist": "^2.0.7",
"@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"eslint": "^8.48.0",
"@types/mdast": "^3.0.15",
"@types/node": "^20.11.30",
"@types/unist": "^2.0.10",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite-node": "^0.34.3",
"vite-plugin-dts": "^3.5.3",
"vitest": "^0.30.1"
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-plugin-import": "^2.29.1",
"typescript": "^5.4.3",
"vite": "^5.2.2",
"vite-node": "^1.4.0",
"vite-plugin-dts": "^3.7.3",
"vitest": "^1.4.0"
},
"dependencies": {
"@brocatel/md": "workspace:^",
Expand All @@ -43,14 +43,14 @@
"mdast-util-to-markdown": "^1.5.0",
"micromark-extension-mdx-expression": "^1.0.8",
"remark-frontmatter": "^5.0.0",
"remark-join-cjk-lines": "^1.0.9",
"remark-join-cjk-lines": "^1.0.11",
"remark-parse": "^10.0.2",
"source-map-js": "^1.2.0",
"unified": "^10.1.2",
"unist-util-visit-parents": "^5.1.3",
"uuid": "^9.0.0",
"uuid": "^9.0.1",
"vfile": "^5.3.7",
"wasmoon": "^1.15.0",
"yaml": "^2.3.3"
"wasmoon": "^1.16.0",
"yaml": "^2.4.1"
}
}
40 changes: 20 additions & 20 deletions mde/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,31 @@
"preview": "vite preview"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.4.0",
"@rushstack/eslint-patch": "^1.8.0",
"@tsconfig/node18": "^18.2.2",
"@types/node": "^18.17.18",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitejs/plugin-vue": "^4.3.4",
"@vue/eslint-config-typescript": "^11.0.3",
"@vue/tsconfig": "^0.4.0",
"eslint": "^8.49.0",
"@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.1",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-vue": "^9.17.0",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite-node": "^0.34.4",
"vite-plugin-dts": "^2.3.0",
"vue-tsc": "^1.8.13"
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-vue": "^9.23.0",
"typescript": "^5.4.3",
"vite": "^5.2.2",
"vite-node": "^1.4.0",
"vite-plugin-dts": "^3.7.3",
"vue-tsc": "^2.0.7"
},
"dependencies": {
"@brocatel/md": "workspace:^",
"@codemirror/lang-markdown": "^6.2.2",
"@codemirror/language": "^6.9.1",
"@codemirror/lang-markdown": "^6.2.4",
"@codemirror/language": "^6.10.1",
"@codemirror/legacy-modes": "^6.3.3",
"@codemirror/lint": "^6.4.2",
"@codemirror/lint": "^6.5.0",
"@codemirror/theme-one-dark": "^6.1.2",
"@milkdown/core": "^7.3.0",
"@milkdown/ctx": "^7.3.0",
Expand All @@ -61,7 +61,7 @@
"remark-squeeze-paragraphs": "^5.0.1",
"unified": "^10.1.2",
"unist-util-visit": "^5.0.0",
"vue": "^3.3.4",
"vue": "^3.4.21",
"vue-codemirror": "^6.1.1"
}
}
56 changes: 32 additions & 24 deletions mde/src/editor/EditorInner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,35 @@
>
{{ diagnostics.length === 0 ? '🗒️' : '❗' }}
</label>
<button @click="call(toggleEmphasisCommand)">
<i>Italics</i>
</button>
<button @click="call(toggleStrongCommand)">
<b>Bold</b>
</button>
<button @click="call(wrapInHeadingCommand)">
<b>#</b>Heading
</button>
<button @click="toggleLink">
<u>Link</u>
</button>
<button @click="call(wrapInBulletListCommand)">
<b>-</b>Choices
</button>
<button @click="call(toggleInlineCodeCommand)">
<code>`Code`</code>
</button>
<button @click="call(toggleMdxInlineCommand)">
<code>{Expr}</code>
</button>
<button @click="call(insertDirectiveCommand)">
<b>:::</b>Directive
</button>
<div
v-show="!useCodeMirror"
class="milkdown-buttons"
>
<button @click="call(toggleEmphasisCommand)">
<i>Italics</i>
</button>
<button @click="call(toggleStrongCommand)">
<b>Bold</b>
</button>
<button @click="call(wrapInHeadingCommand)">
<b>#</b>Heading
</button>
<button @click="toggleLink">
<u>Link</u>
</button>
<button @click="call(wrapInBulletListCommand)">
<b>-</b>Choices
</button>
<button @click="call(toggleInlineCodeCommand)">
<code>`Code`</code>
</button>
<button @click="call(toggleMdxInlineCommand)">
<code>{Expr}</code>
</button>
<button @click="call(insertDirectiveCommand)">
<b>:::</b>Directive
</button>
</div>
</div>
<div v-show="useCodeMirror">
<codemirror
Expand Down Expand Up @@ -193,4 +198,7 @@ function toggleLink() {
margin: 0.2em;
z-index: 1;
}
.milkdown-menu > .milkdown-buttons {
display: inline;
}
</style>
Loading

0 comments on commit cf4e8ce

Please sign in to comment.