# 渐进式 Web 应用(PWA)

PWA=Progressive Web App

前端技术 官网

1 背景

1.1 问题

img

1.2 解决

img

1.3 Native Apps VS PWA

img

img

2 VS Code

Code editing.Redefined.

Free. Built on open source. Runs everywhere.

关键词:开源,支持多平台(Windows/Mac/Linux)

2.1 官方介绍

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).

2.2 VS Code 下载安装

访问官网

img

img

img

$sudo apt-get install vscode -y

插件安装:liveserver

img

2.3 工具使用技巧

doc

快速生成html文件结构

html:5

3 Android Studio

官网下载安装

img

img

是 Android 的官方 IDE

img

升级到4.0后才有菜单

img

Configure

img

AVD Manager

img

Create Virtual Device

img

img

Accept

Next

img

img

img

img

img

10.0.2.2 = 127.0.0.1

4 Materialize

基于Material Design的主流前端响应式框架

img

Meet the Team

We are a team of students from Carnegie Mellon University.

卡内基梅隆大学(CMU)

img

img

5 Firebase

6 PWA

img

最佳实践:sw.js放在根目录,否则后果自负。

6.1 Service Workers

img

img

img

Lifecycle

img

img

img

img

6.2 Registering a Service Worker

img

img

The Install Event

The ‘Activate’ Event

Lighthouse Audit

Fetch Events

img

offline img

The Install Banner

Offline Mode Explained

(CacheStorage)

img

img

6.3 Pre-Caching Assets

6.4 Getting Cached Assets

6.5 Cache Versioning

6.6 Dynamic Caching

6.7 Offline Fallback Page

6.8 Conditional Fallbacks

6.9 Limiting Cache Size

6.10 Site audit Refresh

7 附录

7.1 名词解释

7.2 引用资源

7.3 其它PWA资源

Quasar

Quasar Framework

面向开发人员的前端框架,带有VueJS组件,构建一流的高性能的响应式网站、PWA、SSR、移动和桌面应用,所有这些都来自同一个代码库。 明智的人会选择Vue。高生产力的人选择Quasar。

什么是Quasar?

Quasar(发音为/kweɪ.zɑɹ/)是MIT许可的开源框架(基于Vue),可帮助Web开发人员创建:

* 响应式网站
* PWA(Progressive Web App)
* 通过Apache Cordova构建移动APP(Android,iOS,…)
* 多平台桌面应用程序(使用Electron)

Quasar允许开发人员编写一次代码,并且使用相同的代码库同时部署为网站、PWA、Mobile App和Electron App。使用最先进的CLI设计应用程序,并提供精心编写,速度非常快的Quasar Web组件。

Copyright © 德和居 2021 粤ICP备20069867号 在CC-BY-NC-SA 4.0协议下授权使用,除非另有说明 all right reserved,powered by Gitbook本文修订时间: 2021-04-01 11:45:24

results matching ""

    No results matching ""

    results matching ""

      No results matching ""