Giter Site home page Giter Site logo

quickappcn / sample Goto Github PK

View Code? Open in Web Editor NEW
352.0 15.0 233.0 5.3 MB

快应用的示例项目,方便开发者了解各方面的快应用能力,如:框架,组件,接口等

Home Page: https://www.quickapp.cn/

CSS 26.96% JavaScript 69.85% HTML 2.90% Less 0.29%
quickapp

sample's Introduction

Sample

快应用官方示例项目

node version hap-toolkit version CircleCI

简介

2018年3月份,由小米,中兴,华为等10家厂商成立了快应用联盟,共同发布了快应用的标准。 自此我们可以采用一套标准去开发应用,无缝的运行在各个手机厂商上。一次开发,一次上传,自动分发到所有联盟厂商的设备

快应用官方是采用前端的技术栈来开发的,此项目为示例项目,帮助开发者快速入门快应用的开发

文档和社区

快速开始

安装hap-toolkit 编译工具

$ npm install -g hap-toolkit
$ hap -v

安装好hap-toolkit后,可以在控制台输入hap -v 看看当前的版本

安装手机调试器

调试器是一个Android应用程序,下载调试器APK

安装成功如图

项目运行

  1. 在项目根目录,安装依赖
    $ npm install
  2. 编译
    $ npm run build
  3. 调试
    <!-- 修改源代码后自动编译 -->
    $ npm run watch
  4. 启动http服务器
    $ npm run server

使用手机调试器调试

效果预览

在线查看

HTTPS形式的应用链接(https://hapjs.org/app/org.quickapp.union.sample)二维码:

HAP形式的应用链接(hap://app/org.quickapp.union.sample)二维码:

sample's People

Contributors

cinderellahaha avatar diydyq avatar eraychen1984 avatar gengjiawen avatar leeeeeem avatar lilei946 avatar liquan2022 avatar mengwei-oppo avatar wangcao avatar xdxxdxxdxxdxxdx avatar xiedongxiang avatar zhangyingchun-oppo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sample's Issues

checkbox icon无法加载

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

文件名不能叫做video.ux

我的路径是pages/Video/video.ux,router进入这个文件后死循环,重复调用onInit,修改文件名后就好了

system.postMessage报错

问题描述

用web组件打开网页,网页内用system.postMessage向快应用发送消息报错:SyntaxError:Unexpected identifier,但是在华为的快应用调试器内无此错误

问题复现

  1. 用web组件打开一个网页
  2. 网页内调用system.postMessage
  3. 报错

截图

quickapp_postmessage

syntax_error

  • Device: [MeiZu 16th,HuaWei P40]
  • OS: [ Android 8.1]
  • Browser [快应用web组件]
  • Version [1080]

拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示

拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示

switch文档有误

thumb-color和track-color 作为属性是有效果的,但是作为样式是无效的。官方文档上是不是写错了

运行报错

ERROR: Attribute flex-basis does not support the unit %. At present, only ["px"] is supported.
@ d:\QuickAppWorkSpace\sample-master\src\scenario\scene\elec-business\index.ux

ERROR: Attribute flex-basis does not support the unit %. At present, only ["px"] is supported.
@ d:\QuickAppWorkSpace\sample-master\src\scenario\scene\elec-business\index.ux

ERROR: Attribute flex-basis does not support the unit %. At present, only ["px"] is supported.
@ d:\QuickAppWorkSpace\sample-master\src\scenario\scene\elec-business\index.ux

ERROR: Attribute font-weight value601 is invalid (the valid enumerated value is: normal|bold|lighter|bolder|100|200|300|400|500|600|700|800|900)
@ d:\QuickAppWorkSpace\sample-master\src\component\basic\span\index.ux

picker组件,点击后展示的弹窗,其dom无法在浏览器显示,故无法对其进行样式修改

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

add ci: auto build and test when pushed to github

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

作为一个demo工程,没有持续集成与单元测试是非常奇怪的。这导致这个工程的质量很难量化,而开发者也无从了解这个工程是否处于可用状态。

Describe the solution you'd like
A clear and concise description of what you want to happen.

严格的单元测试可能不太现实,但是在每次提交后进行一次rpk打包应该是完全可行且非常容易实现的(travis、circle均可)。打包过程可以及时发现编译层面的错误,开发者也能够直接下载并使用release出来的rpk包而无需本地环境。

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

以travis为例,加入travis.yml即可实现。travis文档

Additional context
Add any other context or screenshots about the feature request here.

错误提示:平台版本过低,请升级平台;尝试升级,升级后打不开....

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

npm install 安装依赖报错

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2022-01-06T08_20_35_649Z-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.