Repository: sugoidesune/readium Branch: master Commit: 18d0f8881460 Files: 22 Total size: 28.3 KB Directory structure: gitextract_qzabfr9l/ ├── .editorconfig ├── .github/ │ └── workflows/ │ └── main.yml ├── .gitignore ├── .nojekyll ├── README.md ├── assets/ │ └── README.md ├── components/ │ ├── Logo.vue │ └── README.md ├── jsconfig.json ├── layouts/ │ ├── README.md │ └── default.vue ├── middleware/ │ └── README.md ├── nuxt.config.js ├── package.json ├── pages/ │ ├── README.md │ ├── index.vue │ └── tech/ │ └── index.vue ├── plugins/ │ ├── README.md │ └── jsonp-axios.js ├── server/ │ └── index.js ├── static/ │ └── README.md └── store/ └── README.md ================================================ FILE CONTENTS ================================================ ================================================ FILE: .editorconfig ================================================ # editorconfig.org root = true [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.md] trim_trailing_whitespace = false ================================================ FILE: .github/workflows/main.yml ================================================ name: CI on: [push] jobs: build: name: Generate Github Page runs-on: windows-latest steps: - uses: actions/checkout@v1 - run: npm install - run: npm run gitpages - name: Deploy site to gh-pages branch uses: alex-page/blazing-fast-gh-pages-deploy@v1.1.0 with: repo-token: ${{ secrets.GH_PAT }} site-directory: docs ================================================ FILE: .gitignore ================================================ # Created by .ignore support plugin (hsz.mobi) ### Node template # Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* # Runtime data pids *.pid *.seed *.pid.lock # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools like istanbul coverage # nyc test coverage .nyc_output # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) .grunt # Bower dependency directory (https://bower.io/) bower_components # node-waf configuration .lock-wscript # Compiled binary addons (https://nodejs.org/api/addons.html) build/Release # Dependency directories node_modules/ jspm_packages/ # TypeScript v1 declaration files typings/ # Optional npm cache directory .npm # Optional eslint cache .eslintcache # Optional REPL history .node_repl_history # Output of 'npm pack' *.tgz # Yarn Integrity file .yarn-integrity # dotenv environment variables file .env # parcel-bundler cache (https://parceljs.org/) .cache # next.js build output .next # nuxt.js build output .nuxt # Nuxt generate dist # vuepress build output .vuepress/dist # Serverless directories .serverless # IDE / Editor .idea # Service worker sw.* # Mac OSX .DS_Store # Vim swap files *.swp ================================================ FILE: .nojekyll ================================================ ================================================ FILE: README.md ================================================ # readium > Bookmarklet for reading premium articles for free Instructions and Bookmarklet can be found here: https://sugoidesune.github.io/readium/ *This repositroy is simply the Vue project to create the website. ================================================ FILE: assets/README.md ================================================ # ASSETS **This directory is not required, you can delete it if you don't want to use it.** This directory contains your un-compiled assets such as LESS, SASS, or JavaScript. More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked). ================================================ FILE: components/Logo.vue ================================================ ================================================ FILE: components/README.md ================================================ # COMPONENTS **This directory is not required, you can delete it if you don't want to use it.** The components directory contains your Vue.js Components. _Nuxt.js doesn't supercharge these components._ ================================================ FILE: jsconfig.json ================================================ { "compilerOptions": { "baseUrl": ".", "paths": { "~/*": ["./*"], "@/*": ["./*"], "~~/*": ["./*"], "@@/*": ["./*"] } }, "exclude": ["node_modules", ".nuxt", "dist"] } ================================================ FILE: layouts/README.md ================================================ # LAYOUTS **This directory is not required, you can delete it if you don't want to use it.** This directory contains your Application Layouts. More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts). ================================================ FILE: layouts/default.vue ================================================ ================================================ FILE: middleware/README.md ================================================ # MIDDLEWARE **This directory is not required, you can delete it if you don't want to use it.** This directory contains your application middleware. Middleware let you define custom functions that can be run before rendering either a page or a group of pages. More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware). ================================================ FILE: nuxt.config.js ================================================ module.exports = { mode: 'universal', /* ** Headers of the page */ head: { title: 'Readium' || process.env.npm_package_name || '', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: process.env.npm_package_description || '' } ], link: [ { rel: 'icon', type: 'image/x-icon', href: 'favicon.ico' }, { rel: 'shortcut icon', href: '/favicon.ico' }, { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Nunito:200,300,400,600,700&display=swap' }, ], script: [ {src: 'https://kit.fontawesome.com/5b47744dec.js', crossorigin:'anonymous'}, ] }, /* ** Customize the progress-bar color */ loading: { color: '#fff' }, /* ** Global CSS */ css: [ ], /* ** Plugins to load before mounting the App */ plugins: [ ], /* ** Nuxt.js dev-modules */ buildModules: [ '@nuxtjs/axios', ], /* ** Nuxt.js modules */ modules: [ // Doc: https://bootstrap-vue.js.org 'bootstrap-vue/nuxt', ['@nuxtjs/google-gtag', { id: 'UA-41622771-4', debug: true, config: {send_page_view: true} }], ], /* ** Build configuration */ build: { /* ** You can extend webpack config here */ // extend (config, ctx) { // } }, router :{ base: process.env.NODE_ENV === "development" ? '/' : '/readium/' }, generate: { dir: process.env.generateFolder || 'dist' } }; ================================================ FILE: package.json ================================================ { "name": "readium", "version": "1.0.0", "description": "Bookmarklet for reading premium articles for free", "author": "sugoidesune", "private": true, "scripts": { "dev": "cross-env NODE_ENV=development nodemon server/index.js --watch server", "build": "nuxt build", "start": "cross-env NODE_ENV=production node server/index.js", "generate": "nuxt generate", "gitpages": "set generateFolder=docs&&nuxt generate" }, "dependencies": { "@nuxtjs/axios": "^5.8.0", "@nuxtjs/google-gtag": "^1.0.4", "bootstrap": "^4.1.3", "bootstrap-vue": "^2.0.0", "cross-env": "^5.2.0", "express": "^4.16.4", "nuxt": "^2.10.2" }, "devDependencies": { "node-sass": "^4.13.0", "nodemon": "^1.18.9", "sass-loader": "^8.0.0" } } ================================================ FILE: pages/README.md ================================================ # PAGES This directory contains your Application Views and Routes. The framework reads all the `*.vue` files inside this directory and creates the router of your application. More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing). ================================================ FILE: pages/index.vue ================================================ ================================================ FILE: pages/tech/index.vue ================================================ ================================================ FILE: plugins/README.md ================================================ # PLUGINS **This directory is not required, you can delete it if you don't want to use it.** This directory contains Javascript plugins that you want to run before mounting the root Vue.js application. More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/plugins). ================================================ FILE: plugins/jsonp-axios.js ================================================ // import Vue from 'vue' // import jsonpAdapter from 'axios-jsonp' // Vue.use(jsonpAdapter) ================================================ FILE: server/index.js ================================================ const express = require('express') const consola = require('consola') const { Nuxt, Builder } = require('nuxt') const app = express() // Import and Set Nuxt.js options const config = require('../nuxt.config.js') config.dev = process.env.NODE_ENV !== 'production' async function start () { // Init Nuxt.js const nuxt = new Nuxt(config) const { host, port } = nuxt.options.server // Build only in dev mode if (config.dev) { const builder = new Builder(nuxt) await builder.build() } else { await nuxt.ready() } // Give nuxt middleware to express app.use(nuxt.render) // Listen the server app.listen(port, host) consola.ready({ message: `Server listening on http://${host}:${port}`, badge: true }) } start() ================================================ FILE: static/README.md ================================================ # STATIC **This directory is not required, you can delete it if you don't want to use it.** This directory contains your static files. Each file inside this directory is mapped to `/`. Thus you'd want to delete this README.md before deploying to production. Example: `/static/robots.txt` is mapped as `/robots.txt`. More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#static). ================================================ FILE: store/README.md ================================================ # STORE **This directory is not required, you can delete it if you don't want to use it.** This directory contains your Vuex Store files. Vuex Store option is implemented in the Nuxt.js framework. Creating a file in this directory automatically activates the option in the framework. More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/vuex-store).