-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto stash before merge of "master" and "origin/master"
- Loading branch information
Mona Lisa
committed
Apr 6, 2018
1 parent
b61dd93
commit fefdc7c
Showing
22 changed files
with
2,235 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
html, body { | ||
height: 100%; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
* { | ||
font-family: focalpoint; | ||
} | ||
|
||
@font-face { | ||
font-family: focalpoint; | ||
src: url("/assets/fonts/Proxima-Nova-Semibold.woff2"); | ||
} | ||
|
||
.flex-container { | ||
padding: 0; | ||
margin: 0; | ||
display: -webkit-box; | ||
display: -moz-box; | ||
display: -ms-flexbox; | ||
display: -webkit-flex; | ||
display: flex; | ||
flex-wrap: nowrap; | ||
flex-direction: column !important; | ||
justify-content: flex-start; | ||
align-items: center; | ||
} | ||
|
||
.row { | ||
margin: 0; | ||
display: -webkit-box; | ||
display: -moz-box; | ||
display: -ms-flexbox; | ||
display: -webkit-flex; | ||
display: flex; | ||
flex-direction: row; | ||
align-content: space-around; | ||
justify-content: flex-start; | ||
align-items: center; | ||
width: auto; | ||
padding: 8px; | ||
} | ||
|
||
.row > .row-item { | ||
margin: 5px; | ||
} | ||
|
||
.flex-item { | ||
text-align: center; | ||
} | ||
|
||
.right { | ||
float: right; | ||
} | ||
|
||
.inv { | ||
display: none; | ||
} | ||
|
||
.link { | ||
font-family: focalpoint; | ||
color: black; | ||
cursor: pointer; | ||
cursor: hand; | ||
} | ||
|
||
.link:hover > :first-child { | ||
color: #1799B5 !important; | ||
} | ||
|
||
.dropdown { | ||
position: relative; | ||
display: inline-block; | ||
} | ||
|
||
.dropdown-content { | ||
display: none; | ||
position: absolute; | ||
background-color: #f9f9f9; | ||
min-width: 160px; | ||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
z-index: 2; | ||
margin-top: 10px; | ||
} | ||
|
||
.dropdown-content > * { | ||
padding: 12px 16px; | ||
} | ||
|
||
.dropdown:hover .dropdown-content { | ||
display: block; | ||
} | ||
|
||
.color-red { | ||
color: red; | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
let _api = { }; | ||
|
||
axios.defaults.withCredentials = true; | ||
|
||
(function () { | ||
const root = 'http://localhost:3000/api/'; | ||
const urls = { | ||
loginUrl: 'signin', | ||
logoutUrl: 'logout', | ||
currentUserUrl: 'current-user', | ||
videosUrl: 'videos' | ||
}; | ||
function url(api) { | ||
return root + urls[api]; | ||
} | ||
|
||
function get(url, params, fn) { | ||
axios.get(url, { | ||
params: params | ||
}) | ||
.then(function (response) { | ||
fn(null, JSON.parse(response.data.split('\n')[1])); | ||
}) | ||
.catch(function (error) { | ||
fn(JSON.parse(error.response.data.split('\n')[1])); | ||
}); | ||
} | ||
|
||
function post(url, params, fn) { | ||
axios.post(url, params) | ||
.then(function (response) { | ||
fn(null, JSON.parse(response.data.split('\n')[1])); | ||
}) | ||
.catch(function (error) { | ||
fn(JSON.parse(error.response.data.split('\n')[1])); | ||
}); | ||
} | ||
|
||
_api.currentUser = function (fn) { | ||
get(url('currentUserUrl'), { }, fn); | ||
}; | ||
|
||
_api.login = function (username, password, fn) { | ||
post(url('loginUrl'), { username: username, password: password }, fn); | ||
}; | ||
|
||
_api.logout = function(fn) { | ||
post(url('logoutUrl'), {}, fn); | ||
}; | ||
|
||
_api.videos = function(topicPath, accessLevel, offset, num, fn) { | ||
get(url('videosUrl'), { subject: topicPath.subject, course: topicPath.course, topic: topicPath.topic, accessLevel: accessLevel, offset: offset, num: num }, fn); | ||
}; | ||
})(); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const _const = { | ||
headerOne: { | ||
loginButton: 'Login / Create Account', | ||
profileButton: 'Current user', | ||
loginError: 'An error occurred. Please comtact support.' | ||
}, | ||
videos: { | ||
num: 8 | ||
} | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const _utils = { | ||
page: { | ||
|
||
} | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>pm2-demo</title> | ||
</head> | ||
<body> | ||
<title>Image Board</title> | ||
<link rel="stylesheet" type="text/css" href="/assets/css/common.css"></link> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
|
||
<script src="//unpkg.com/axios/dist/axios.min.js"></script> | ||
<script src="//unpkg.com/vue-router/dist/vue-router.js"></script> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/zenscroll/4.0.0/zenscroll-min.js"></script> | ||
<script src="/assets/js/constants.js"></script> | ||
<script src="/assets/js/api.js"></script> | ||
<script src="/assets/js/utils.js"></script> | ||
<script src="/dist/build.js"></script> | ||
</body> | ||
</body> | ||
|
||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Vue from 'vue' | ||
import Router from 'vue-router' | ||
import Index from './components/Index' | ||
import Catalog from './components/Catalog' | ||
import Thread from './components/Thread' | ||
import About from './components/About' | ||
|
||
Vue.use(Router) | ||
|
||
export default new Router({ | ||
routes: [ | ||
{ | ||
path: '/', | ||
name: 'Index', | ||
component: Index | ||
}, | ||
{ | ||
path: '/catalog/:board', | ||
name: 'Catalog', | ||
component: Catalog | ||
}, | ||
{ | ||
path: '/:board/thread/:thread' | ||
name: 'Thread', | ||
component: Thread | ||
}, | ||
{ | ||
path: '/about', | ||
name: 'About', | ||
component: About | ||
} | ||
] | ||
}) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<template> | ||
<div class="about"> | ||
<h1>What is a Crypto-Currency?</h1> | ||
<p> | ||
It's a digital currency in which encryption techniques are used to regulate the generation of units of currency | ||
and verify the transfer of funds, operating independently of a central bank. | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'About' | ||
} | ||
</script> |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<div class="hello"> | ||
<h1>{{ msg }}</h1> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'Hello', | ||
data () { | ||
return { | ||
msg: 'Welcome to Crypto Info' | ||
} | ||
} | ||
} | ||
</script> |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
import Vue from 'vue' | ||
import router from './Router' | ||
import App from './App.vue' | ||
|
||
Vue.config.productionTip = false | ||
|
||
new Vue({ | ||
el: '#app', | ||
render: h => h(App) | ||
router, | ||
template: '<App/>', | ||
components: { App } | ||
}) |