Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Use Nuxt
Browse files Browse the repository at this point in the history
  • Loading branch information
curtgrimes committed Sep 1, 2018
1 parent ecfb485 commit 06fc0e9
Show file tree
Hide file tree
Showing 156 changed files with 7,885 additions and 7,400 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ app/node_modules
app/dist
!app/build/.gitkeep
app/npm-debug.log
app/.nuxt
npm-debug.log
static-site/public
static-site/node_modules
Expand Down
13 changes: 13 additions & 0 deletions app/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
21 changes: 21 additions & 0 deletions app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
// https:/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential'
],
// required to lint *.vue files
plugins: [
'vue'
],
// add your custom rules here
rules: {}
}
11 changes: 11 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# dependencies
node_modules

# logs
npm-debug.log

# Nuxt build
.nuxt

# Nuxt generate
dist
23 changes: 23 additions & 0 deletions app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# webcaptioner

> A speech-to-text service using the Web Speech API
## Build Setup

``` bash
# install dependencies
$ npm install # Or yarn install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm start

# generate static project
$ npm run generate
```

For detailed explanation on how things work, checkout the [Nuxt.js docs](https:/nuxt/nuxt.js).

6 changes: 6 additions & 0 deletions app/api/feedback/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function (req, res, next) {
console.log('hi');
res.writeHead(301, { Location: 'https://feedback.webcaptioner.com' });
res.end();
return;
}
5 changes: 5 additions & 0 deletions app/api/health-check/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = function (req, res, next) {
res.statusCode = 200;
res.end();
return;
}
9 changes: 9 additions & 0 deletions app/assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ASSETS

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

**This directory is not required, you can delete it if you don't want to use it.**

File renamed without changes.
68 changes: 34 additions & 34 deletions app/src/scss/app.scss → app/assets/scss/app.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url('https://fonts.googleapis.com/css?family=Cousine:400,700|Roboto:400,700');
@import "../node_modules/bootstrap/scss/functions";
@import "~bootstrap/scss/functions";

$font-family-sans-serif: 'Roboto', sans-serif;
$headings-font-family: 'Cousine', monopsace;
Expand Down Expand Up @@ -94,42 +94,42 @@ $carousel-control-opacity: .8;

$hr-margin-y: 0.5rem;

@import "../node_modules/bootstrap/scss/variables";
@import "../node_modules/bootstrap/scss/mixins";
@import "../node_modules/bootstrap/scss/print";
@import "../node_modules/bootstrap/scss/reboot";
@import "../node_modules/bootstrap/scss/type";
@import "../node_modules/bootstrap/scss/images";
@import "../node_modules/bootstrap/scss/code";
@import "../node_modules/bootstrap/scss/grid";
@import "../node_modules/bootstrap/scss/tables";
@import "../node_modules/bootstrap/scss/forms";
@import "../node_modules/bootstrap/scss/buttons";
@import "../node_modules/bootstrap/scss/transitions";
@import "../node_modules/bootstrap/scss/dropdown";
@import "../node_modules/bootstrap/scss/button-group";
@import "../node_modules/bootstrap/scss/input-group";
@import "../node_modules/bootstrap/scss/custom-forms";
@import "../node_modules/bootstrap/scss/nav";
@import "../node_modules/bootstrap/scss/navbar";
@import "../node_modules/bootstrap/scss/card";
@import "../node_modules/bootstrap/scss/breadcrumb";
@import "../node_modules/bootstrap/scss/pagination";
@import "../node_modules/bootstrap/scss/badge";
//@import "../node_modules/bootstrap/scss/jumbotron";
@import "../node_modules/bootstrap/scss/alert";
@import "../node_modules/bootstrap/scss/progress";
@import "../node_modules/bootstrap/scss/media";
@import "../node_modules/bootstrap/scss/list-group";
@import "../node_modules/bootstrap/scss/close";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";
@import "~bootstrap/scss/print";
@import "~bootstrap/scss/reboot";
@import "~bootstrap/scss/type";
@import "~bootstrap/scss/images";
@import "~bootstrap/scss/code";
@import "~bootstrap/scss/grid";
@import "~bootstrap/scss/tables";
@import "~bootstrap/scss/forms";
@import "~bootstrap/scss/buttons";
@import "~bootstrap/scss/transitions";
@import "~bootstrap/scss/dropdown";
@import "~bootstrap/scss/button-group";
@import "~bootstrap/scss/input-group";
@import "~bootstrap/scss/custom-forms";
@import "~bootstrap/scss/nav";
@import "~bootstrap/scss/navbar";
@import "~bootstrap/scss/card";
@import "~bootstrap/scss/breadcrumb";
@import "~bootstrap/scss/pagination";
@import "~bootstrap/scss/badge";
//@import "~bootstrap/scss/jumbotron";
@import "~bootstrap/scss/alert";
@import "~bootstrap/scss/progress";
@import "~bootstrap/scss/media";
@import "~bootstrap/scss/list-group";
@import "~bootstrap/scss/close";

// Components w/ JavaScript
@import "../node_modules/bootstrap/scss/modal";
@import "../node_modules/bootstrap/scss/tooltip";
@import "../node_modules/bootstrap/scss/popover";
@import "../node_modules/bootstrap/scss/carousel";
@import "~bootstrap/scss/modal";
@import "~bootstrap/scss/tooltip";
@import "~bootstrap/scss/popover";
@import "~bootstrap/scss/carousel";

@import "../node_modules/bootstrap/scss/utilities";
@import "~bootstrap/scss/utilities";

.logo-text {
font-family:$headings-font-family;
Expand Down
85 changes: 0 additions & 85 deletions app/build/setup-dev-server.js

This file was deleted.

9 changes: 0 additions & 9 deletions app/build/vue-loader.config.js

This file was deleted.

86 changes: 0 additions & 86 deletions app/build/webpack.base.config.js

This file was deleted.

Loading

0 comments on commit 06fc0e9

Please sign in to comment.