同步操作将从 sunxy/airoot-uisys 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
UI-SYSTEM (代号), 是一款编译系统,可以将WEB页封装和发布。它不是JS框架、也不是DOM框架。 其内建的编译引擎可以升级当前WEB平台,使它具备面向对象的特性。 UI-SYSTEM的优势是抛开了以往语言级别的面向对象设计,采用全面向对象设计(包含HTML、CSS、JavaScript等)。 UI-SYSTEM的开发和普通的WEB开发没有什么区别,几乎零学习成本。
首先,UI-SYSTEM不负责后台开发,也就是说它只面向前端开发,你不可以把它作为动态服务器来学习。
UI-SYSTEM 不需要安装、即学即用。程序体积小,在性能及易用性上都做了深度考量。
UI-SYSTEM 即面向普通WEB开发,同时也面向模块化开发。
UI-SYSTEM 即适合初学者人群,同时也适合高级JavaScript开发人群。
UI-SYSTEM 相比现在的WEB 模块化框架,其在设计之初就是以模块化思想为基础,UI-SYSTEM 的开发体验更加友好,拥有高效的编程方案,同时兼备了友好的开发体验。 UI-SYSTEM 在设计之初,就将模块化、资源管理、整合其他框架作为其创建目标,所以你会发现,当你开启UI-SYSTEM编程第一个Hello World的页面时,其背后已经帮你解决了许多关键问题。不需要什么全家桶、不需要什么机制,加载、渲染、卸载、资源管理、网络资源、外部包等等,都已经考虑了。
首先,UI-SYSTEM 不是框架,他是一个面向前端的渲染平台,采用Google Golang 开发。UI-SYSTEM的默认发布框架包仅仅只有20KB。UI-SYSTEM的设计初衷就是用最简单的代码解决复杂的问题,平台发布代码均以高扩展性、高复用性、高维护性作为思想基础,你可以想象到,一套轻量级的代码量去构建重量级别的项目。
因此,UI-SYSTEM是轻量级的平台,但是可以承接复杂的项目。UI-SYSTEM发布的项目是轻量级的,但是具备重量级项目的表现力。
WINDOWS
点击这里下载 UI-SYSTEM 的演示包
pub example/v1 :80
其中:80是开启服务的端口好,也可以指定发布地址,如127.0.0.1:80
3. 打开chrome浏览器,输入:http://127.0.0.1/
LINUX 和 CENTOS
DARWIN
ARM
UI-SYS 的服务节点运行方式,默认是以 开发(Development) 模式运行的,在此模式下,UISYS的WEB SERVER 会对扩展名为*.ui,*.es 两种文件进行实时解析,当我们要发布的时候,需要切换到静态发布模式,届时,所有的*.ui,.es都会变成.ui.hmtl这样的扩展名。 如果想了解UISYS的*.ui,*.es扩展名文件的概念可以点击这里。 静态模式命令如下:
$> pub example/v1 :80 -s
命令的格式是在原有格式后加上 -s 即可(-s 代表 static)。
我们介绍下 UISYS 平台的基本命令,包括服务控制命令和项目参数设置命令。
获取帮助信息
$> --help
---------------------------------------------
lang Language Setting.
COMMAND: lang <zh/cn>
pub Publishing websites.
COMMAND: pub <path> [HTTP Service IP:PORT]
ls Show services list.
COMMAND: ls
add Add services and don't use command as services name.
COMMAND: add <Service Name> [Project Path] [HTTP Service IP:PORT]
...
获取软件版本
$> version
---------------------------------------------
AIroot UI-SYSTEM 0.9.5beta
发布指定目录为网站
命令格式: pub [HTTP Service IP:PORT]
$> pub example/v1
---------------------------------------------
The [p0] setted in [E:\UISYS-RELEASE\example\v1].
The [p0] starting at [:80]
WEB Server Started At: [:80]. Use protocol http
可以指定端口:
$> pub example/v1 :8888
---------------------------------------------
The [p0] setted in [E:\UISYS-RELEASE\example\v1].
The [p0] starting at [:8888]
WEB Server Started At: [:8888]. Use protocol http
可以指定绝对路径:
$> pub E:\UISYS-RELEASE\example\v1 :8888
---------------------------------------------
The [p0] setted in [E:\UISYS-RELEASE-0.9.5BETA\example\v1].
The [p0] starting at [:8888]
WEB Server Started At: [:8888]. Use protocol http
对于带空格的路径可以用引号括起来,如下:
$> pub "E:\UISYS RELEASE\example\v1" :8888
---------------------------------------------
The [p0] setted in [E:\UISYS RELEASE\example\v1\example\v1].
The [p0] starting at [:8888]
WEB Server Started At: [:8888]. Use protocol http
可以指定https服务
$> pub "E:\UISYS-RELEASE\example\v1" https://:80
---------------------------------------------
The [p0] starting at [https://:80]
WEB Server Started At: [:80]. Use protocol https
可以全部制定:
$> pub "E:\UISYS-RELEASE\example\v1" https://10.110.10.34:80
---------------------------------------------
The [p0] starting at [https://10.110.10.34:80]
WEB Server Started At: [10.110.10.34:80]. Use protocol https
列出当前存在的服务节点。
$> ls
---------------------------------------------
0. p1 Running 2019-07-10 23:43:28 D:\UISYS-RELEASE\example\v1 http://0.0.0.0:80/
1. a2 Stopping 2019-07-10 23:43:43 D:\UISYS-RELEASE\example\v2 http:///
----list over----
Add services and don't use command as services name.
添加服务节点,用于挂在被发布的工程。
注意:服务名称不能使用add作为服务的名字。
$> add a0 example/v1 :80
---------------------------------------------
The [a0] setted in [E:\UISYS-RELEASE\example\v1].
The [a0] starting at [:80]
WEB Server Started At: [:80]. Use protocol http
也可以只创建服务节点,但是不挂在项目:
$> add a0
---------------------------------------------
The [a0] added successfully.
如果需要挂在节点,可以通过 stp(set project)命令挂在项目目录:
$> a0 stp example/v1
---------------------------------------------
The [a0] setted in [C:\Users\Administrator\Desktop\UISYS-RELEASE-0.9.5BETA\example\v1].
此时,我们只是挂在了项目,如果要运行需要使用 run 命令:
$> run a0 :80
---------------------------------------------
The [a0] starting at [:80]
WEB Server Started At: [:80]. Use protocol http
Start service.
运行服务节点
$> run a0
---------------------------------------------
The [a2] starting at [:80]
WEB Server Started At: [:80]. Use protocol http
可以指定端口
$> run a0 :80
---------------------------------------------
The [a2] starting at [:80]
WEB Server Started At: [:80]. Use protocol http
可以指定IP
$> run a0 10.110.10.34:80
---------------------------------------------
The [a2] starting at [10.110.10.34:80]
WEB Server Started At: [10.110.10.34:80]. Use protocol http
可以指定https服务
$> run a0 https://:80
---------------------------------------------
The [a2] starting at [https://:80]
WEB Server Started At: [:80]. Use protocol https
可以全部制定:
$> run a0 https://10.110.10.34:80
---------------------------------------------
The [a2] starting at [https://10.110.10.34:80]
WEB Server Started At: [10.110.10.34:80]. Use protocol https
停止服务
$> stop a0
---------------------------------------------
a0 Stop [a0]
status: [:80]http: Server closed.
[:80]JUS Server END.
移除服务
$> rm a0
---------------------------------------------
[a0] remove success.
status: [:80]http: Server closed.
[:80]JUS Server END.
实现端口穿透功能。
$> nat -add desktop :12000 10.110.10.28:3389
---------------------------------------------
The [desktop] starting at [:12000-->10.110.10.28:3389]
----list over----
查看本平台用了多少个对外映射可以:
$> nat
---------------------------------------------
desktop [:12000-->127.0.0.1:3389] Running 0
----list over----
如果要删除这个映射服务可以用一下命令:
$> nat -remove desktop
---------------------------------------------
>> accept tcp [::]:12000: use of closed network connection
desktop Close havs error: close tcp [::]:12000: use of closed network connection
----list over----
关闭控制台(Console)的输入功能。
$> -c
---------------------------------------------
Console Input Method Unabled.
启动Web版的服务器命令窗口。该功能默认以https发布。
$> webc
---------------------------------------------
Web Control Server Started At: [:3690]. Use protocol https
如果自己设定服务端口,可以用:
$> webc :10000
---------------------------------------------
Web Control Server Started At: [:10000]. Use protocol https
执行批处理命令,可以指定多个批处理文件。
例如,我们编写一个“config.conf”,如下:
#发布example/v1工程到80端口
pub example/v1 :80
#发布example/v2工程到90端口
pub example/v2 :90
然后保存到uisys.exe 可以访问的目录,例如,放到uisys目录下。 然后再uisys控制台输入命令:
$> bat config.conf
---------------------------------------------
#发布example/v1工程到80端口
The [p0] setted in [C:\UISYS-RELEASE\example\v1].
The [p0] starting at [:80]
#发布example/v2工程到90端口
WEB Server Started At: [:80]. Use protocol http
The [p1] setted in [C:\UISYS-RELEASE\example\v2].
The [p1] starting at [:90]
WEB Server Started At: [:90]. Use protocol http
bat 多个执行多个命令文件,如下:
$> bat config.conf config1.conf "E:/uisys conf/config2.conf"
---------------------------------------------
...
get application status,for example time and so on. 获取平台的运行状态,用以显示当前平台的起始时间和运行时间。
$> stat
---------------------------------------------
Date 2019-07-13 23:27:45
Now 2019-07-13 23:33:20
Exit. 退出服务
create project dir.
创建一个UI交互工程目录,ctp 是 create project 的缩写。
COMMAND: ctp <Project Path>
命令格式:ctp <项目路径>
说明:被创建的工程平台会直接帮您挂在到一个临时服务节点上。
$> ctp D:\uisys\project01
---------------------------------------------
create project [D:\uisys\project01].
The [a0] added successfully.
The [a0] setted in [D:\uisys\project01].
The project mount at[a0] server.
set project dir.
重新设置一个服务节点的工程目录,stp 是 set project 的缩写。
COMMAND: stp <Service Name>
例如,如果平台已有一个服务节点a0,可以重新让其指向"D:\uisys\project01"的路径。
$> stp a0 D:\uisys\project01
---------------------------------------------
The [a0] setted in [D:\uisys\project01].
create module file.
COMMAND: ctf [-Create Method(-h|m|s|r)] <Service Name>
For Example:ctf test component.Test
ctf test -hr component.Test
release project.
发布工程为原生工程,以便其他服务器可以使用。
COMMAND: release <Service Name> [Project Path]
$> release a0 D:\uisys\project-release\
---------------------------------------------
----Release Complete----
push data to Service by websocket.
通过UI-System自建的websocket数据服务,推送数据到WEB客户端。
COMMAND: send <Service Name> <User ID> <UUID> <Value>
display websocket list of Service
查看服务节点提供的websocket服务被多少个WEB客户端连接。
COMMAND: lw <Service Name> [-h]
The project infomation
显示项目信息
COMMAND: rm <Service Name>
Set project attributes.
设置WEB工程的属性
COMMAND: set <Service Name> <AttributeName> <Value> [Value...]
Remove project attributes.
COMMAND: ret <Service Name> <AttributeName>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。