【文件属性】:
文件名称:my-trips
文件大小:380KB
文件格式:ZIP
更新时间:2021-03-09 05:54:45
TypeScript
我的旅行
一个简单的网站,显示您去过或想去的固定地点
入门
图形CMS
该项目使用 ,因此您需要首先在此处创建一个帐户。
在需要创建架构之后,只需按照以下步骤操作:
架构>使用Place添加新模型
并添加以下字段:
Single Line Text作为name
Slug为slug
Map作为location
Rich Text作为description
Asset Picker作为gallery
架构>使用Page名称添加新模型
并添加以下字段:
Single Line Text作为heading
Slug为slug
Rich Text作为body
之后,填写一些值,不要忘记publish !
验证
为了创建令牌访问,请转到Settings > API Access ,在此页面内,找到“ Permanent Auth Tokens身份Permanent Auth
【文件预览】:
my-trips-main
----.babelrc(407B)
----fluxo-next.drawio(40KB)
----codegen.yml(304B)
----.husky()
--------.gitignore(2B)
--------pre-commit(71B)
----next.config.js(290B)
----package.json(2KB)
----.env.production(37B)
----.eslintrc.json(834B)
----.github()
--------workflows()
----.prettierrc(70B)
----.prettierignore(19B)
----jest.config.js(284B)
----.jest()
--------setup.ts(67B)
----src()
--------templates()
--------pages()
--------graphql()
--------components()
--------styles()
--------types()
----tsconfig.json(506B)
----next-env.d.ts(75B)
----generators()
--------templates()
--------plopfile.js(871B)
----.gitignore(446B)
----public()
--------img()
--------manifest.json(453B)
----README.md(3KB)
----next-seo.config.ts(260B)
----yarn.lock(508KB)
----.eslintignore(19B)
----.editorconfig(166B)
----.vscode()
--------settings.json(105B)