This commit is contained in:
728
2024-08-19 13:49:13 +08:00
parent 8597584716
commit cd2509eaf1
7 changed files with 38 additions and 20 deletions

13
dsn.md
View File

@ -60,12 +60,12 @@
`#{agd}`
`#{soc}-[cdt|dbt|ern|agd|msg|act]`
`#{soc}-[cdt|dbt|ern|agd|msg|act]-{yyyymm}`
`${soc}-{usr}`
`${soc}-{usr}-[cdt|dbt|ern|agd|msg|act]`
`${soc}-{usr}-[cdt|dbt|ern|agd|msg|act]-{yyyymm}`
`${agd}-{usr}`
`${agd}-{usr}-[cdt|dbt|ern|agd|msg|act]`
`${agd}-{usr}-[cdt|dbt|ern|agd|msg|act]-{yyyymm}`
`#{soc}-{usr}`
`#{soc}-{usr}-[cdt|dbt|ern|agd|msg|act]`
`#{soc}-{usr}-[cdt|dbt|ern|agd|msg|act]-{yyyymm}`
`#{agd}-{usr}`
`#{agd}-{usr}-[cdt|dbt|ern|agd|msg|act]`
`#{agd}-{usr}-[cdt|dbt|ern|agd|msg|act]-{yyyymm}`
`hash = {usr?, soc?, agd?, rec?, utc?}`
@ -78,6 +78,7 @@
* `src`
- `eid` 数据
- `doc` 数据关系
- `pas.ts` 浏览权限
- `doc.ts` 数据文档
- `frm.ts` 数据操作
- `nav.ts` 浏览状态

View File

@ -1,15 +1,4 @@
import { Agd, Aut, Cdt, Crn, Dbt, Ern, Id, Msg, Soc, Usr } from "./typ.ts"
export type Pas = {
usr: Usr["_id"],
nam: Usr["nam"],
cdt: (Cdt & { dbt: Dbt["amt"], ern: Ern["amt"] })[] | {
agr: Soc["agr"], soc: Soc["_id"], nam: Soc["nam"]
},
sec: Soc["_id"][],
aut: Aut["aut"],
ban: Aut["ban"],
}
import { Agd, Aut, Cdt, Crn, Ern, Id, Msg, Soc, Usr } from "../typ.ts"
export type Sum = { cdt: number, dbt: number, ern: number, act: number, msg: number }

16
src/doc/nav.ts Normal file
View File

@ -0,0 +1,16 @@
import { Agd, Soc, Usr } from "../typ.ts"
export type Nav = {
usr?: Usr["_id"],
soc?: Soc["_id"],
agd?: Agd["_id"],
rec?: "cdt" | "dbt" | "ern" | "agd" | "msg" | "act",
utc?: number,
}
function nav(
n: Nav,
h: string,
) {
}

12
src/doc/pas.ts Normal file
View File

@ -0,0 +1,12 @@
import { Aut, Cdt, Dbt, Ern, Soc, Usr } from "../typ.ts"
export type Pas = {
usr: Usr["_id"],
nam: Usr["nam"],
cdt: (Cdt & { dbt: Dbt["amt"], ern: Ern["amt"] })[] | {
agr: Soc["agr"], soc: Soc["_id"], nam: Soc["nam"]
},
sec: Soc["_id"][],
aut: Aut["aut"],
ban: Aut["ban"],
}

View File

@ -1,4 +1,4 @@
import { mdh } from "../../src/mdh.ts"
import { mdh } from "../../src/doc/mdh.ts"
import { idnam, section } from "./section.ts"
const main = document.getElementById("main") as HTMLDivElement

View File

@ -1,4 +1,4 @@
import { pmd, htm } from "../../src/mdh.ts"
import { pmd, htm } from "../../src/doc/mdh.ts"
export function section(
h5: string,