diff --git a/module/wiki/raw/development/basic.md b/module/wiki/raw/development/basic.md new file mode 100644 index 00000000..b140a5c8 --- /dev/null +++ b/module/wiki/raw/development/basic.md @@ -0,0 +1,4 @@ +# Basic + +Hydro 后端使用 NodeJS 编写,前端使用 JQuery + React。 +代码风格遵循 airbnb 标准。 \ No newline at end of file diff --git a/module/wiki/raw/development/contents.json b/module/wiki/raw/development/contents.json index 437d862d..649b0118 100644 --- a/module/wiki/raw/development/contents.json +++ b/module/wiki/raw/development/contents.json @@ -1,3 +1,4 @@ [ - "gettingstarted" + "basic", + "module" ] \ No newline at end of file diff --git a/module/wiki/raw/development/gettingstarted.md b/module/wiki/raw/development/gettingstarted.md deleted file mode 100644 index 30c34aae..00000000 --- a/module/wiki/raw/development/gettingstarted.md +++ /dev/null @@ -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 diff --git a/module/wiki/raw/development/module.md b/module/wiki/raw/development/module.md new file mode 100644 index 00000000..053c918d --- /dev/null +++ b/module/wiki/raw/development/module.md @@ -0,0 +1,13 @@ +# Module + +Hydro 的模块由以下几个部分组成: + +service: 服务 +script: 脚本 +handler: 访问路由 +lib: 库 +file: 额外文件 +locale: 多国化 +template: UI 模板 + +TODO \ No newline at end of file diff --git a/module/wiki/raw/gettingstarted/contents.json b/module/wiki/raw/gettingstarted/contents.json index 2a4c4f1f..9c9af8ad 100644 --- a/module/wiki/raw/gettingstarted/contents.json +++ b/module/wiki/raw/gettingstarted/contents.json @@ -1,3 +1,4 @@ [ - "introduction" + "introduction", + "deploy" ] \ No newline at end of file diff --git a/module/wiki/raw/gettingstarted/deploy.md b/module/wiki/raw/gettingstarted/deploy.md new file mode 100644 index 00000000..bbcfd41c --- /dev/null +++ b/module/wiki/raw/gettingstarted/deploy.md @@ -0,0 +1,13 @@ +# Deployment + +Hydro 依赖于 MongoDB 与 NodeJS,您应该先安装它们。 +之后您可以下载最新版的 Hydro 程序,放置于一个空文件夹,使用如下命令启动 Hydro: + +```sh +node hydro.js +``` + +Hydro 会自行初始化并监听 8888 端口。请用浏览器访问并进行相应配置。 +数据库配置完成后,会自动创建 Root 用户。(账号 `root` ,密码 `rootroot`),请及时修改。 + +之后的进阶配置可在 管理 面板进行。 diff --git a/ui/components/header/header-logo.png b/ui/components/header/header-logo.png index a79da8a8..13dab138 100644 Binary files a/ui/components/header/header-logo.png and b/ui/components/header/header-logo.png differ diff --git a/ui/components/header/header-logo@2x.png b/ui/components/header/header-logo@2x.png index 4ba9d363..9e032946 100755 Binary files a/ui/components/header/header-logo@2x.png and b/ui/components/header/header-logo@2x.png differ diff --git a/ui/components/header/header.page.styl b/ui/components/header/header.page.styl index 08290169..a546f22c 100644 --- a/ui/components/header/header.page.styl +++ b/ui/components/header/header.page.styl @@ -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