This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const separator = (height = 12, color = '#e0e0e0') => | |
| `<tr><td height="${height}"></td></tr> | |
| <tr><td height="${height}" style="border-top: 1px solid ${color};"></td></tr>` | |
| const space = x => `<tr><td height="${x}"></td></tr>` | |
| const label = x => `<tr><td style="font-size: 12px; color: #999;">${x}</td></tr>` | |
| const input = x => `<tr><td style="font-size: 16px;">${x}</td></tr>` | |
| const check = (a, b) => { return a ? label(b) + input(a) + separator() : '' } | |
| const footer = `<tr> | |
| <td style="font-size: 12px; color: #999999;"> | |
| <b>NAME</b><br> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div ref="div"> | |
| <label> | |
| <strong v-if="progress === 0"> | |
| {{ label }} | |
| <svg width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/><path d="M0 0h24v24H0z" fill="none"/></svg> | |
| </strong> | |
| <strong v-if="progress > 0 && progress < 100"> {{ progress }}%</strong> | |
| <span v-else>{{ name }}</span> | |
| <input ref="input" type="file" :accept="accept" @change="onFileChange"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template lang="pug"> | |
| svg(viewBox="0 0 119 20" version="1.1" xmlns="http://www.w3.org/2000/svg") | |
| rect(v-for="p, index in om" width="1" :height="p === 0 ? 1 : p" :key="index" :x="index * 2" :y="p === 0 ? 19 : 20 - p" fill="#999") | |
| </template> | |
| <script> | |
| export default { | |
| data () { | |
| return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const marked = require('marked') | |
| self.onmessage = function (event) { | |
| switch (event.data) { | |
| case 'next': | |
| next(event.data) | |
| break | |
| case 'license': | |
| license(event.data) | |
| break |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM mhart/alpine-node:10.10.0 as full | |
| WORKDIR /app | |
| ENV HOST 0.0.0.0 | |
| COPY . . | |
| RUN npm ci | |
| RUN npm run build | |
| RUN rm -rf node_modules | |
| # Magic! | |
| RUN npm ci nuxt-start-edge debug --production |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * | |
| !assets | |
| !pages | |
| !static | |
| !nuxt.config.js | |
| !package*.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @babel | |
| @csstools | |
| @nuxtjs | |
| @vue | |
| @webassemblyjs | |
| @xtuc | |
| accepts | |
| acorn | |
| acorn-dynamic-import | |
| ajv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Vue from 'vue' | |
| // https://vuejs.org/v2/guide/custom-directive.html | |
| Vue.directive('links', { | |
| // Called only once, when the directive is first bound to the element. This is where you can do one-time setup work. | |
| bind (el) { | |
| const navigate = event => { | |
| const href = event.target.getAttribute('href') | |
| event.preventDefault() | |
| if (href && href[0] === '/') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div v-html="content" /> | |
| </template> | |
| <script> | |
| export default { | |
| props: { | |
| content: { | |
| type: String, | |
| default: '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template lang="pug"> | |
| h1(v-html="content") | |
| </template> | |
| <script> | |
| export default { | |
| props: { | |
| content: { | |
| type: String, | |
| default: '' |