From 3de41ba9e482bd9b1d2037a6c6923700b56ff1c6 Mon Sep 17 00:00:00 2001 From: 728 Date: Thu, 11 Aug 2022 13:01:30 +0800 Subject: [PATCH] init --- ismism.ts/.gitignore | 3 + ismism.ts/.vscode/settings.json | 3 + ismism.ts/.vscode/tasks.json | 38 +++++++++ ismism.ts/build.zsh | 8 ++ ismism.ts/deno.json | 46 +++++++++++ ismism.ts/ui/bind.ts | 1 + ismism.ts/ui/index.html | 140 ++++++++++++++++++++++++++++++++ 7 files changed, 239 insertions(+) create mode 100644 ismism.ts/.gitignore create mode 100644 ismism.ts/.vscode/settings.json create mode 100644 ismism.ts/.vscode/tasks.json create mode 100644 ismism.ts/build.zsh create mode 100644 ismism.ts/deno.json create mode 100644 ismism.ts/ui/bind.ts create mode 100644 ismism.ts/ui/index.html diff --git a/ismism.ts/.gitignore b/ismism.ts/.gitignore new file mode 100644 index 0000000..1fce60f --- /dev/null +++ b/ismism.ts/.gitignore @@ -0,0 +1,3 @@ +/target +/gen +/registries diff --git a/ismism.ts/.vscode/settings.json b/ismism.ts/.vscode/settings.json new file mode 100644 index 0000000..43df84f --- /dev/null +++ b/ismism.ts/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "deno.enable": true +} diff --git a/ismism.ts/.vscode/tasks.json b/ismism.ts/.vscode/tasks.json new file mode 100644 index 0000000..6659c0b --- /dev/null +++ b/ismism.ts/.vscode/tasks.json @@ -0,0 +1,38 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "command": "source build.zsh release", + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "echo": true, + "reveal": "always", + "panel": "dedicated", + "showReuseMessage": false, + "clear": true + } + }, + { + "label": "test", + "type": "shell", + "command": "source build.zsh test; http-server --logger target", + "group": { + "kind": "test", + "isDefault": true + }, + "presentation": { + "echo": true, + "reveal": "always", + "panel": "dedicated", + "showReuseMessage": false, + "clear": true + } + } + ] +} + diff --git a/ismism.ts/build.zsh b/ismism.ts/build.zsh new file mode 100644 index 0000000..f5dc8f3 --- /dev/null +++ b/ismism.ts/build.zsh @@ -0,0 +1,8 @@ +echo "building $1" + +rm -rf target +mkdir target + +cp ui/index.html target/index.html +deno bundle ui/bind.ts target/bind.js + diff --git a/ismism.ts/deno.json b/ismism.ts/deno.json new file mode 100644 index 0000000..8d315b3 --- /dev/null +++ b/ismism.ts/deno.json @@ -0,0 +1,46 @@ +{ + "compilerOptions": { + "allowJs": true, + "lib": [ + "dom", + "dom.iterable", + "dom.asynciterable", + "deno.ns" + ], + "strict": true + }, + "lint": { + "files": { + "include": [ + "src/", + "ui/" + ] + }, + "rules": { + "tags": [ + "recommended" + ], + "include": [ + "ban-untagged-todo" + ], + "exclude": [ + "no-unused-vars" + ] + } + }, + "fmt": { + "files": { + "include": [ + "src/", + "ui/" + ] + }, + "options": { + "useTabs": true, + "lineWidth": 80, + "indentWidth": 4, + "singleQuote": true, + "proseWrap": "preserve" + } + } +} diff --git a/ismism.ts/ui/bind.ts b/ismism.ts/ui/bind.ts new file mode 100644 index 0000000..696e67b --- /dev/null +++ b/ismism.ts/ui/bind.ts @@ -0,0 +1 @@ +console.log("binding") diff --git a/ismism.ts/ui/index.html b/ismism.ts/ui/index.html new file mode 100644 index 0000000..6d3638c --- /dev/null +++ b/ismism.ts/ui/index.html @@ -0,0 +1,140 @@ + + + + + + 主义主义 活动公示 + + + + + + +
+

主义主义 活动公示

+

This is a test.

+
+ +
+
+
+

TITLE HEADING

+
Title description, Dec 7, 2017
+
Image
+

Some text..

+

Sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do + eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud + exercitation + ullamco.

+
+
+

TITLE HEADING

+
Title description, Sep 2, 2017
+
Image
+

Some text..

+

Sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do + eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud + exercitation + ullamco.

+
+
+ +
+
+

About Me

+
Image
+

Some text about me in culpa qui officia deserunt mollit anim..

+
+
+

Popular Post

+
Image

+
Image

+
Image
+
+
+

Follow Me

+

Some text..

+
+
+
+ + + + + + +