mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
+HeaderLogo +wiki
This commit is contained in:
1 parent
2d2b2930f0
commit
9e5d3dea89
9 files changed
+36
-27
No files matched your search
@@ -0,0 +1,4 @@
|
||||
# Basic
|
||||
|
||||
Hydro 后端使用 NodeJS 编写,前端使用 JQuery + React。
|
||||
代码风格遵循 airbnb 标准。
|
||||
@@ -1,3 +1,4 @@
|
||||
[
|
||||
"gettingstarted"
|
||||
"basic",
|
||||
"module"
|
||||
]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Getting Started
|
||||
|
||||
欢迎使用 Hydro !
|
||||
|
||||
#### 部署 Hydro
|
||||
|
||||
1. 安装 MongoDB 。MongoDB 是 Hydro 所使用的数据库程序。
|
||||
2. 下载打包完成的 javascript 文件并放置于一个**有读写权限**的空文件夹运行。
|
||||
3. 访问 127.0.0.1:8888 并以 root 账户登录 Hydro。(默认密码为 rootroot ,请及时修改)
|
||||
4. 打开管理面板进行相应配置。
|
||||
5. 完成!
|
||||
|
||||
#### 模块安装与卸载
|
||||
|
||||
TODO
|
||||
|
||||
#### 模块开发
|
||||
|
||||
TODO
|
||||
|
||||
#### 项目架构
|
||||
|
||||
TODO
|
||||
@@ -0,0 +1,13 @@
|
||||
# Module
|
||||
|
||||
Hydro 的模块由以下几个部分组成:
|
||||
|
||||
service: 服务
|
||||
script: 脚本
|
||||
handler: 访问路由
|
||||
lib: 库
|
||||
file: 额外文件
|
||||
locale: 多国化
|
||||
template: UI 模板
|
||||
|
||||
TODO
|
||||
@@ -1,3 +1,4 @@
|
||||
[
|
||||
"introduction"
|
||||
"introduction",
|
||||
"deploy"
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Deployment
|
||||
|
||||
Hydro 依赖于 MongoDB 与 NodeJS,您应该先安装它们。
|
||||
之后您可以下载最新版的 Hydro 程序,放置于一个空文件夹,使用如下命令启动 Hydro:
|
||||
|
||||
```sh
|
||||
node hydro.js
|
||||
```
|
||||
|
||||
Hydro 会自行初始化并监听 8888 端口。请用浏览器访问并进行相应配置。
|
||||
数据库配置完成后,会自动创建 Root 用户。(账号 `root` ,密码 `rootroot`),请及时修改。
|
||||
|
||||
之后的进阶配置可在 管理 面板进行。
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 52 KiB |
@@ -33,7 +33,7 @@ $header-gap-mini-domain = ($header-bg-height-mini - $nav-item-height - $header-l
|
||||
display: block
|
||||
width: rem($header-logo-width-real)
|
||||
height: rem($header-logo-height + $header-gap-mini + $nav-item-height)
|
||||
background: url(header-logo-summer.png) no-repeat
|
||||
background: url(header-logo.png) no-repeat
|
||||
background-size: rem($header-logo-width-real) rem($header-logo-height-real)
|
||||
background-position: 0 rem($header-gap-mini + $nav-item-height - ($header-logo-height-real - $header-logo-height))
|
||||
transition: transform .5s, opacity .5s
|
||||
@@ -41,7 +41,7 @@ $header-gap-mini-domain = ($header-bg-height-mini - $nav-item-height - $header-l
|
||||
transform-origin: 0 0
|
||||
opacity: 1
|
||||
+retina()
|
||||
background-image: url(./header-logo-summer@2x.png)
|
||||
background-image: url(./header-logo@2x.png)
|
||||
+mobile()
|
||||
display: inline-block
|
||||
|
||||
|
||||
Reference in new issue
Block a user