mirror of https://github.com/andrigamerita/simpkey
wip
This commit is contained in:
parent
9cc01202e4
commit
92e8472b26
|
@ -9,9 +9,17 @@ It is suitable if you are using a legacy computer, or you are not prefer to enab
|
||||||
## build
|
## build
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# ???????????
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
|
# ????????
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
|
# ???????
|
||||||
yarn start
|
yarn start
|
||||||
|
|
||||||
|
# watch ????????????????????
|
||||||
|
yarn watch
|
||||||
```
|
```
|
||||||
|
|
||||||
## LICENSE
|
## LICENSE
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "simpkey",
|
"name": "simpkey",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0-beta.1",
|
||||||
"description": "server-side misskey client",
|
"description": "server-side misskey client",
|
||||||
"main": "built/app.js",
|
"main": "built/app.js",
|
||||||
"author": "Xeltica",
|
"author": "Xeltica",
|
||||||
|
@ -26,6 +26,7 @@
|
||||||
"koa-router": "^9.1.0",
|
"koa-router": "^9.1.0",
|
||||||
"koa-session": "^6.0.0",
|
"koa-session": "^6.0.0",
|
||||||
"koa-views": "^6.3.0",
|
"koa-views": "^6.3.0",
|
||||||
|
"mfmf": "^4.1.0",
|
||||||
"pug": "^3.0.0",
|
"pug": "^3.0.0",
|
||||||
"typescript": "^3.9.7"
|
"typescript": "^3.9.7"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
export default {
|
export default {
|
||||||
version: '1.0.0',
|
version: '1.0.0-beta.1',
|
||||||
changelog: [
|
changelog: [
|
||||||
'initial release'
|
'initial release'
|
||||||
],
|
],
|
||||||
|
|
|
@ -66,7 +66,7 @@ mixin note(note)
|
||||||
if canRenote && canRenote(note)
|
if canRenote && canRenote(note)
|
||||||
|[
|
|[
|
||||||
a(href="/renote/" + note.id) リノート !{note.renoteCount}
|
a(href="/renote/" + note.id) リノート !{note.renoteCount}
|
||||||
|]
|
|]
|
||||||
if canReact && canReact(note)
|
if canReact && canReact(note)
|
||||||
if !note.myReaction
|
if !note.myReaction
|
||||||
| [
|
| [
|
||||||
|
@ -75,7 +75,7 @@ mixin note(note)
|
||||||
else
|
else
|
||||||
form(action="action/unreact", method="post" style="display: inline")
|
form(action="action/unreact", method="post" style="display: inline")
|
||||||
input(type="hidden", name="noteId", value=note.id)
|
input(type="hidden", name="noteId", value=note.id)
|
||||||
button(type="submit") リアクション解除
|
button(type="submit") リアクション解除
|
||||||
|
|
||||||
mixin post-form(url, placeholder, buttonText)
|
mixin post-form(url, placeholder, buttonText)
|
||||||
form(action=url, method="post")
|
form(action=url, method="post")
|
||||||
|
@ -90,13 +90,13 @@ mixin post-form(url, placeholder, buttonText)
|
||||||
mixin nav()
|
mixin nav()
|
||||||
div
|
div
|
||||||
|[
|
|[
|
||||||
a(href="/") ホーム
|
a(href="/") ホーム
|
||||||
|] [
|
|] [
|
||||||
a(href="/ltl") ローカル
|
a(href="/ltl") ローカル
|
||||||
|] [
|
|] [
|
||||||
a(href="/stl") ソーシャル
|
a(href="/stl") ソーシャル
|
||||||
|] [
|
|] [
|
||||||
a(href="/gtl") グローバル
|
a(href="/gtl") グローバル
|
||||||
|] [
|
|] [
|
||||||
a(href="/notifications") 通知
|
a(href="/notifications") 通知
|
||||||
|] [
|
|] [
|
||||||
|
@ -116,6 +116,9 @@ mixin user-header(user, detail = false)
|
||||||
.name: b=getUserName(user)
|
.name: b=getUserName(user)
|
||||||
|
|
|
|
||||||
span(style="color: gray")= getAcct(user)
|
span(style="color: gray")= getAcct(user)
|
||||||
|
if user.isFollowed
|
||||||
|
span.is-followed フォローされています
|
||||||
|
|
||||||
if user.isLocked
|
if user.isLocked
|
||||||
span.lock
|
span.lock
|
||||||
if user.isAdmin
|
if user.isAdmin
|
||||||
|
@ -145,9 +148,11 @@ mixin user-header(user, detail = false)
|
||||||
.count
|
.count
|
||||||
a.notes(href="/" + getAcct(user)) !{user.notesCount} ノート
|
a.notes(href="/" + getAcct(user)) !{user.notesCount} ノート
|
||||||
|
|
|
|
||||||
a.following(href="/" + getAcct(user) + "/following") !{user.followingCount} フォロー
|
//- a.following(href="/" + getAcct(user) + "/following")
|
||||||
|
| !{user.followingCount} フォロー
|
||||||
|
|
|
|
||||||
a.followers(href="/" + getAcct(user) + "/followers") !{user.followersCount} フォロワー
|
//- a.followers(href="/" + getAcct(user) + "/followers")
|
||||||
|
| !{user.followersCount} フォロワー
|
||||||
|
|
||||||
mixin timeline(notes)
|
mixin timeline(notes)
|
||||||
each note in notes
|
each note in notes
|
||||||
|
|
Loading…
Reference in New Issue