12 changed files with 216 additions and 162 deletions
Binary file not shown.
@ -1,16 +1,17 @@ |
|||||
/home/topuser/Code/@project/hapi-demo/source/route/htmx对应路径: |
D:\1XYX\pro\hapi-demo\source\route\htmx对应路径: |
||||
不需权限 : GET /htmx/path/{path*} |
不需权限(提供无需验证): GET /htmx/path/{path*} |
||||
/home/topuser/Code/@project/hapi-demo/source/route/views对应路径: |
D:\1XYX\pro\hapi-demo\source\route\views对应路径: |
||||
不需权限(提供无需验证): GET /404 |
不需权限(提供无需验证): GET /404 |
||||
不需权限(提供无需验证): GET / |
不需权限(提供无需验证): GET / |
||||
不需权限(提供无需验证): GET /about |
不需权限(提供无需验证): GET /about |
||||
|
不需权限(提供无需验证): GET /color |
||||
需要权限 : GET /docs/{path*} |
需要权限 : GET /docs/{path*} |
||||
不需权限 : GET /{path*} |
不需权限(提供无需验证): GET /{path*} |
||||
不需权限(提供无需验证): GET /login |
不需权限(提供无需验证): GET /login |
||||
不需权限 : POST /login |
不需权限(提供无需验证): POST /login |
||||
不需权限 : GET /nav |
不需权限(提供无需验证): GET /nav |
||||
不需权限(提供无需验证): GET /register |
不需权限(提供无需验证): GET /register |
||||
不需权限 : POST /register |
不需权限(提供无需验证): POST /register |
||||
需要权限 : POST /user |
需要权限 : POST /user |
||||
需要权限 : GET /user |
需要权限 : GET /user |
||||
需要权限 : GET /user/logout |
需要权限 : GET /user/logout |
||||
|
@ -0,0 +1,53 @@ |
|||||
|
include @/helper/flush.pug |
||||
|
include @/helper/helper.pug |
||||
|
|
||||
|
block var |
||||
|
-title="颜色" // 网页标题 |
||||
|
title 颜色 |
||||
|
|
||||
|
div(class="container page") |
||||
|
style |
||||
|
:public style/views/color.css |
||||
|
h1 颜色表 |
||||
|
div(class="color_list") |
||||
|
- |
||||
|
var list=[ |
||||
|
{ color:"#00ffff",title: "青色",describe:""}, |
||||
|
{ color:"#222222",title: "辅助色",describe:""}, |
||||
|
{ color:"#8f8f8f",title: "辅助色",describe:""}, |
||||
|
{ color:"#00d1b2",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
{ color:"#999999",title: "辅助色",describe:""}, |
||||
|
] |
||||
|
each item in list |
||||
|
div(class="color_item") |
||||
|
div(class="color_item_bg" style=`background: ${item.color}`) |
||||
|
div(class="color_toggle_list") |
||||
|
div(class="color_toggle_item") hex |
||||
|
div(class="color_toggle_item") rgba |
||||
|
div(class="color_item_name") #{item.color} |
||||
|
div(class="color_item_content") |
||||
|
div(class="color_item_title") #{item.title} |
||||
|
div(class="color_item_desc") #{item.describe || "暂无描述"} |
||||
|
//- div(class="color_item") |
||||
|
//- img(src="/public/image/add.png", alt="添加" title="添加" class="color_add") |
||||
|
if isLogin |
||||
|
div |
||||
|
form(action="POST" method="post") |
||||
|
div(class=".wrapper_input"): input(type="text" tabindex="1" value="sadsa" name="a") |
||||
|
div(class=".wrapper_input"): input(type="text" tabindex="3" value="sadsa" name="b") |
||||
|
button(type="submit" tabindex="2") 提交 |
@ -1,51 +1,4 @@ |
|||||
extends /layout/layout |
extends @/layout/single-page |
||||
|
|
||||
block var |
block page |
||||
-title="颜色表" // 网页标题 |
include @hxpath/color.pug |
||||
|
|
||||
block head |
|
||||
link(rel="stylesheet", href="/public/style/views/color.css") |
|
||||
|
|
||||
block content |
|
||||
div(class="container page") |
|
||||
div(class="color_list") |
|
||||
- |
|
||||
var list=[ |
|
||||
{ color:"#999999",title: "辅助色",describe:"灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色"}, |
|
||||
{ color:"#999999",title: "辅助色",describe:"灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色"}, |
|
||||
{ color:"#999999",title: "辅助色",describe:"灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色灰色"}, |
|
||||
{ color:"#000000",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
{ color:"#999999",title: "辅助色",describe:""}, |
|
||||
] |
|
||||
each item in list |
|
||||
div(class="color_item") |
|
||||
div(class="color_item_bg" style=`background: ${item.color}`) |
|
||||
div(class="color_toggle_list") |
|
||||
div(class="color_toggle_item") hex |
|
||||
div(class="color_toggle_item") rgba |
|
||||
div(class="color_item_name") #{item.color} |
|
||||
div(class="color_item_content") |
|
||||
div(class="color_item_title") #{item.title} |
|
||||
div(class="color_item_desc") #{item.describe || "暂无描述"} |
|
||||
div(class="color_item") |
|
||||
//- img(src="/public/image/add.png", alt="添加" title="添加" class="color_add") |
|
||||
div |
|
||||
form(action="POST" method="post") |
|
||||
div(class=".wrapper_input"): input(type="text" tabindex="1" value="sadsa" name="a") |
|
||||
div(class=".wrapper_input"): input(type="text" tabindex="3" value="sadsa" name="b") |
|
||||
button(type="submit" tabindex="2") 提交 |
|
||||
|
Loading…
Reference in new issue