Skip to content

Commit

Permalink
Added stm_vue_ui scaffold #30
Browse files Browse the repository at this point in the history
* linkedin login on open
* a dummy GQL request / response / display
* a dummy homepage
  • Loading branch information
rimutaka committed Feb 9, 2022
1 parent bb9df83 commit f97ce3d
Show file tree
Hide file tree
Showing 20 changed files with 31,997 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stm_vue_ui/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
5 changes: 5 additions & 0 deletions stm_vue_ui/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
25 changes: 25 additions & 0 deletions stm_vue_ui/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
root: true,

env: {
node: true
},

extends: [
'plugin:vue/vue3-recommended',
'@vue/standard',
'@vue/typescript'
],

parserOptions: {
parser: '@typescript-eslint/parser'
},

rules: {
'no-console': 'off',
'no-debugger': 'off',
'comma-dangle': ['error', 'only-multiline'],
'vue/comma-dangle': ['error', 'only-multiline'],
"@typescript-eslint/comma-dangle": ["error", "only-multiline"]
},
}
23 changes: 23 additions & 0 deletions stm_vue_ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
15 changes: 15 additions & 0 deletions stm_vue_ui/.graphqlconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "StackMuncher GraphQL Schema",
"schemaPath": "./schema.graphql",
"extensions": {
"endpoints": {
"Default GraphQL Endpoint": {
"url": "http://app.stackmuncher/graphql",
"headers": {
"user-agent": "JS GraphQL"
},
"introspect": false
}
}
}
}
14 changes: 14 additions & 0 deletions stm_vue_ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# StackMuncher Vue front-end

This UI extends StackMuncher HTML UI and is only accessible by logged in users.

## Login and registration

Employers have to log in using their LinkedIn profile to access extended search functionality. No special registration step is necessary.

Developers can login into their profiles with GitHub or a token generated by the StackMuncher app they run locally.

#### Login validation and authorization

A valid JWT must be attached to every GraphQL request.

5 changes: 5 additions & 0 deletions stm_vue_ui/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
Loading

0 comments on commit f97ce3d

Please sign in to comment.