forked from daren.hsu/line_push
update
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2016-2019 Nuxt.js Team
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
## Loading Screen
|
||||
|
||||
[![Github Actions CI][github-actions-src]][github-actions-href]
|
||||
[![Standard JS][standard-js-src]][standard-js-href]
|
||||
[![npm version][npm-version-src]][npm-version-href]
|
||||
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
||||
[![package phobia][package-phobia-src]][package-phobia-href]
|
||||
|
||||
|
||||
This module is internally being used by [nuxt.js](https://github.com/nuxt/nuxt.js) to show loading screen.
|
||||
|
||||

|
||||
|
||||
## License
|
||||
|
||||
MIT - Made with 💖 By Nuxt team!
|
||||
|
||||
<!-- Refs -->
|
||||
[github-actions-src]: https://github.com/nuxt/loading-screen/workflows/ci/badge.svg?branch=master
|
||||
[github-actions-href]: https://github.com/nuxt/loading-screen/actions?query=workflow%3Aci
|
||||
|
||||
[standard-js-src]: https://flat.badgen.net/badge/code%20style/standard/green
|
||||
[standard-js-href]: https://standardjs.com
|
||||
|
||||
[npm-version-src]: https://flat.badgen.net/npm/v/@nuxt/loading-screen/latest
|
||||
[npm-version-href]: https://npmjs.com/package/@nuxt/loading-screen
|
||||
|
||||
[npm-downloads-src]: https://flat.badgen.net/npm/dt/@nuxt/loading-screen
|
||||
[npm-downloads-href]: https://npmjs.com/package/@nuxt/loading-screen
|
||||
|
||||
[package-phobia-src]: https://flat.badgen.net/packagephobia/install/@nuxt/loading-screen
|
||||
[package-phobia-href]: https://packagephobia.now.sh/result?p=@nuxt/loading-screen
|
||||
+1
@@ -0,0 +1 @@
|
||||
@import url(https://fonts.googleapis.com/css?family=Quicksand:400,500);a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}.loading-screen{display:flex;flex-flow:column nowrap;justify-content:center;align-content:center;align-items:center;font-family:Quicksand,sans-serif;height:100vh;transition:opacity .4s}.loading-screen.hide{opacity:0}.loading-screen .row{flex:0 0 auto}.logo{margin-bottom:40px}.v-enter-active,.v-leave-active{transition-delay:.5s;transition-property:all;transition-duration:.6s}.v-enter,.v-leave-to{opacity:0;transform:translateY(-10px)}.placeholder{text-align:center}h3{font-weight:500;font-size:18px;color:#383838;margin:1em 0;letter-spacing:1px}.hasErrors{color:#d0021b}.errorStack{padding:1.5em;border:1px solid #108775;border-radius:1em;background-color:#eee;margin:1em 0}p.pre{margin-top:1em;line-height:1.2em;white-space:pre}h4{margin-bottom:30px;font-size:15px;color:#383838}.reload_prevented{width:500px;max-width:85vw}.reload_prevented p{margin-bottom:1rem}.progress_bar_container{background-color:#ddd;border-radius:6px;width:500px;max-width:85vw;height:10px;margin-bottom:10px}.progress_bar{border-radius:6px;height:10px;width:10px;transition:width .4s}.progress_bar.client{background-color:#00c58e}.progress_bar.server{background-color:#108775}.progress_bar.modern{background-color:#2f495e}
|
||||
Generated
Vendored
+2
File diff suppressed because one or more lines are too long
Generated
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* Vue.js v2.6.12
|
||||
* (c) 2014-2020 Evan You
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
!function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var i=t[f];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={2:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="__BASE_URL__/";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var a=0;a<f.length;a++)r(f[a]);var p=i;t()}([]);
|
||||
+1
-1
@@ -1 +1 @@
|
||||
<!doctype html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Nuxt.js: Loading app...</title><link href="__BASE_URL__/assets/css/index.1b7451ea.chunk.css" rel="stylesheet"></head><body><div id="nuxt_loading_screen"></div><script>window.$STATE=__STATE__</script><script>window.$OPTIONS=__OPTIONS__</script><script>!function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var i=t[f];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={2:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="__BASE_URL__/";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var a=0;a<f.length;a++)r(f[a]);var p=i;t()}([])</script><script src="__BASE_URL__/assets/js/chunk-vendors.695d640f.chunk.js"></script><script src="__BASE_URL__/assets/js/index.1b7451ea.chunk.js"></script></body></html>
|
||||
<!doctype html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Nuxt.js: Loading app...</title><link href="__BASE_URL__/assets/css/index.28675de3.chunk.css" rel="stylesheet"></head><body><div id="nuxt_loading_screen"></div><script>window.$STATE=__STATE__</script><script>window.$OPTIONS=__OPTIONS__</script><script>!function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var i=t[f];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={2:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="__BASE_URL__/";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var a=0;a<f.length;a++)r(f[a]);var p=i;t()}([])</script><script src="__BASE_URL__/assets/js/chunk-vendors.b9580920.chunk.js"></script><script src="__BASE_URL__/assets/js/index.28675de3.chunk.js"></script></body></html>
|
||||
+1
-1
@@ -5,7 +5,7 @@ const serveStatic = require('serve-static')
|
||||
const getPort = require('get-port-please')
|
||||
const { json, end, header } = require('node-res')
|
||||
|
||||
const { parseStack } = require('./utils/error')
|
||||
const { parseStack } = require('./utils')
|
||||
const SSE = require('./sse')
|
||||
|
||||
class LoadingUI {
|
||||
|
||||
+4
-1
@@ -13,7 +13,10 @@ class SSE {
|
||||
status(res, 200)
|
||||
header(res, 'Content-Type', 'text/event-stream')
|
||||
header(res, 'Cache-Control', 'no-cache')
|
||||
header(res, 'Connection', 'keep-alive')
|
||||
|
||||
if (req.httpVersion !== '2.0') {
|
||||
header(res, 'Connection', 'keep-alive')
|
||||
}
|
||||
|
||||
this.subscriptions.add(res)
|
||||
res.on('close', () => this.subscriptions.delete(res))
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
const { sep } = require('path')
|
||||
|
||||
// copied from https://github.com/nuxt/consola/blob/master/src/utils/error.js
|
||||
function parseStack (stack) {
|
||||
const cwd = process.cwd() + sep
|
||||
|
||||
const lines = stack
|
||||
.split('\n')
|
||||
.splice(1)
|
||||
.map(l => l
|
||||
.trim()
|
||||
.replace('file://', '')
|
||||
.replace(cwd, '')
|
||||
)
|
||||
|
||||
return lines
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
parseStack
|
||||
}
|
||||
+31
-14
@@ -1,43 +1,53 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"@nuxt/loading-screen@2.0.2",
|
||||
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
|
||||
"@nuxt/loading-screen@2.0.4",
|
||||
"/home/node/nuxt"
|
||||
]
|
||||
],
|
||||
"_from": "@nuxt/loading-screen@2.0.2",
|
||||
"_id": "@nuxt/loading-screen@2.0.2",
|
||||
"_from": "@nuxt/loading-screen@2.0.4",
|
||||
"_id": "@nuxt/loading-screen@2.0.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-29fLSfSNwCLnpXPbnTbMlgK4u5rw1raJBcBjTNlONfTo2FasWxyEgZ2HMMRlJoikMxxB9FZsjdegnYcplhiRTA==",
|
||||
"_integrity": "sha512-xpEDAoRu75tLUYCkUJCIvJkWJSuwr8pqomvQ+fkXpSrkxZ/9OzlBFjAbVdOAWTMj4aV/LVQso4vcEdircKeFIQ==",
|
||||
"_location": "/@nuxt/loading-screen",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "@nuxt/loading-screen@2.0.2",
|
||||
"raw": "@nuxt/loading-screen@2.0.4",
|
||||
"name": "@nuxt/loading-screen",
|
||||
"escapedName": "@nuxt%2floading-screen",
|
||||
"scope": "@nuxt",
|
||||
"rawSpec": "2.0.2",
|
||||
"rawSpec": "2.0.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.0.2"
|
||||
"fetchSpec": "2.0.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/nuxt"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@nuxt/loading-screen/-/loading-screen-2.0.2.tgz",
|
||||
"_spec": "2.0.2",
|
||||
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
|
||||
"_resolved": "https://registry.npmjs.org/@nuxt/loading-screen/-/loading-screen-2.0.4.tgz",
|
||||
"_spec": "2.0.4",
|
||||
"_where": "/home/node/nuxt",
|
||||
"bugs": {
|
||||
"url": "https://github.com/nuxt/loading-screen/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"connect": "^3.7.0",
|
||||
"defu": "^2.0.4",
|
||||
"get-port-please": "^1.0.0",
|
||||
"defu": "^5.0.0",
|
||||
"get-port-please": "^2.2.0",
|
||||
"node-res": "^5.0.1",
|
||||
"serve-static": "^1.14.1"
|
||||
},
|
||||
"description": "[![Github Actions CI][github-actions-src]][github-actions-href] [![Standard JS][standard-js-src]][standard-js-href] [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![package phobia][package-phobia-src]][package-phobia-href]",
|
||||
"devDependencies": {
|
||||
"@nuxtjs/eslint-config": "latest",
|
||||
"eslint": "latest",
|
||||
"poi": "latest",
|
||||
"standard-version": "latest",
|
||||
"unfetch": "latest",
|
||||
"vue": "latest",
|
||||
"vue-template-compiler": "latest"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"app-dist"
|
||||
@@ -50,5 +60,12 @@
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/nuxt/loading-screen.git"
|
||||
},
|
||||
"version": "2.0.2"
|
||||
"scripts": {
|
||||
"build": "yarn poi --prod",
|
||||
"lint": "eslint --ext .vue,.ts,.js .",
|
||||
"prepack": "yarn build",
|
||||
"release": "yarn test && standard-version && git push --follow-tags && npm publish",
|
||||
"test": "yarn lint"
|
||||
},
|
||||
"version": "2.0.4"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user