LCUI Router App – Write a browser-like application in C

栏目: IT技术 · 发布时间: 5年前

内容简介:(A very simple browser-like application to show the LCUI and LCUI Router features.

lcui-router-app

( English / 中文 )

A very simple browser-like application to show the LCUI and LCUI Router features.

LCUI Router App – Write a browser-like application in C

To Use

To clone and run this repository you'll need install the following tools on your computer:

From your command line:

# Clone this repository
git clone https://github.com/lc-ui/lcui-router-app

# Go into the repository
cd lcui-router-app

# Install NodeJS dependencies
npm install

# Install C/C++ dependencies for x64 CPU architecture
lcpkg install --arch x64

# Run the app with debug mode
lcpkg run start --mode debug

What's included

  • Some resource files.
  • Some scripts that make it easy for you to quickly build application.
  • Configuration files for CMake and XMake build tools, You can choose one of them that you like.
  • Simple data storage implementation in src/lib/store.c .
  • .scss files for describe the user interface style.
  • Implementation of the browser's graphical interface.
  • Welcome page, about page, file page, 404 page, new tab page.
  • Example for the routing navigation of the LCUI Router .
  • Examples of use of the LC Design component library.

Project Structure

  • app : contains the resource files required for the application to run. You can use it as the working directory of the application, and when you publish your application, you only need to package the files in that directory.
  • build : contains build tool output files.
  • config/router.js : Configuration file for the LCUI Router, it can be compiled into a src/lib/router.c file using the lcui compile router command.
  • scripts : contains build-related scripts and configuration files.
  • src : contains the source code.
    • ui : contains source code related to the user interface.
      • stylesheets : contains the source code of stylesheets. You can put .scss files here, they will be compiled into css files and outputed to the app/assets/stylesheets directory at build time.
      • components : contains the source code of the components.
      • views : contains the source code of the views.
    • lib : contains the base library code.

License

CC0 1.0 (Public Domain)


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

宇宙涟漪中的孩子

宇宙涟漪中的孩子

谢云宁 / 四川科学技术出版社 / 2017-11 / 28.00元

近未来。日冕科技公司通过建造围绕太阳的光幕搜集了近乎无穷的能源,这些能源主要用于地球上的网络空间建设。随着全球网络时间频率的不断提升,越来越多的人选择接驳进虚拟空间,体验现实中难以经历的丰富人生。 网络互动小说作者宁天穹一直自认为是这些人中普通的一员,有一天却被一名读者带进反抗组织,了解到日冕公司的各种秘密,并被告知自己的小说将在抵抗运动中起到重要作用。 起初他拒绝参与,但看到地球被笼......一起来看看 《宇宙涟漪中的孩子》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具