-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Board base #14
Board base #14
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"env": { | ||
"es6": true | ||
"es6": true, | ||
"browser": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ | |
/public/system/* | ||
/public/packs | ||
/node_modules | ||
.vscode |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"rules": { | ||
"declaration-bang-space-before": "always", | ||
"declaration-bang-space-after": "never", | ||
"declaration-property-value-blacklist": { | ||
"/^border/": ["none"] | ||
}, | ||
"color-named": "never", | ||
"declaration-block-no-duplicate-properties": true, | ||
"rule-empty-line-before": ["always-multi-line", { | ||
"except": ["after-single-line-comment", "first-nested"] | ||
}], | ||
"block-no-empty": true, | ||
"no-missing-end-of-source-newline": true, | ||
"color-hex-length": "short", | ||
"color-hex-case": "lower", | ||
"color-no-invalid-hex": true, | ||
"declaration-no-important": true, | ||
"indentation": 2, | ||
"number-leading-zero": "never", | ||
"no-duplicate-selectors": true, | ||
"max-nesting-depth": 3, | ||
"selector-pseudo-element-colon-notation": "double", | ||
"selector-no-qualifying-type": true, | ||
"shorthand-property-no-redundant-values": true, | ||
"declaration-block-semicolon-newline-after": "always-multi-line", | ||
"selector-list-comma-newline-after": "always", | ||
"function-comma-space-after": "always-single-line", | ||
"declaration-colon-space-after": "always", | ||
"declaration-colon-space-before": "never", | ||
"block-opening-brace-space-before": "always", | ||
"function-parentheses-space-inside": "never", | ||
"string-quotes": "single", | ||
"declaration-block-trailing-semicolon": "always", | ||
"no-eol-whitespace": true, | ||
"number-no-trailing-zeros": true, | ||
"function-url-quotes": "always", | ||
"property-no-vendor-prefix": true, | ||
"selector-no-vendor-prefix": true, | ||
"media-feature-name-no-vendor-prefix": true, | ||
"at-rule-no-vendor-prefix": true, | ||
"value-no-vendor-prefix": true, | ||
"length-zero-no-unit": true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class AppController < ApplicationController | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<div class="app"> | ||
<app-header class="app__header"></app-header> | ||
<board class="app__board"></board> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import appHeader from '../trellaw/app-header.vue'; | ||
import board from '../trellaw/board.vue'; | ||
|
||
export default { | ||
components: { | ||
appHeader, | ||
board, | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
@import '~normalize.css/normalize'; | ||
@import '../trellaw/stylesheets/variables'; | ||
|
||
*, | ||
*::after, | ||
*::before { | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
font-family: $font-family; | ||
background-color: $body-bg; | ||
color: $body-color; | ||
} | ||
|
||
html, | ||
body, | ||
.app { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.app { | ||
display: flex; | ||
flex-flow: column nowrap; | ||
|
||
&__header { | ||
flex: 40px 0 0; | ||
} | ||
|
||
&__board { | ||
flex: 100% 1 1; | ||
} | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* eslint-disable no-unused-vars */ | ||
import Vue from 'vue'; | ||
import App from './app.vue'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const app = new Vue(App).$mount('#app'); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<header class="header"> | ||
<img :src="logo" /> | ||
</header> | ||
</template> | ||
|
||
<script> | ||
import logo from '../trellaw/images/white-monkey.svg' | ||
|
||
export default { | ||
data() { | ||
return { | ||
logo, | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. que lindo |
||
@import 'stylesheets/variables'; | ||
.header { | ||
background-color: $header-bg; | ||
text-align: center; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<div class="board"> | ||
<list class="board__list" :title="'Ideas'"></list> | ||
<list class="board__list" :title="'Backlog'"></list> | ||
<list class="board__list" :title="'This Sprint'"></list> | ||
<list class="board__list" :title="'In Process'"></list> | ||
<list class="board__list" :title="'Done'"></list> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import list from './list'; | ||
|
||
export default { | ||
components: { | ||
list, | ||
} | ||
} | ||
</script> | ||
|
||
|
||
<style lang="scss" scoped> | ||
@import './stylesheets/variables'; | ||
|
||
.board { | ||
padding: 45px 5px 24px; | ||
white-space: nowrap; | ||
overflow-x: auto; | ||
|
||
&__list { | ||
display: inline-block; | ||
margin: 0 5px; | ||
width: 270px; | ||
height: 100%; | ||
} | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<div class="card-target"> | ||
<img :src="add" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import add from '../trellaw/images/add.svg' | ||
|
||
export default { | ||
data() { | ||
return { | ||
add, | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.card-target { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 103px; | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<div class="card"> | ||
<component :is="cardType"></component> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: ['cardType'], | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import './stylesheets/variables'; | ||
|
||
.card { | ||
background-color: $card-bg; | ||
border-radius: 4px; | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<template> | ||
<div class="list-wrapper"> | ||
<div class="list"> | ||
<div class="list__header">{{title}}</div> | ||
<div class="list__content"> | ||
<card :card-type="dropTarget"></card> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import card from './card'; | ||
import cardTarget from './card-target'; | ||
|
||
export default { | ||
components: { | ||
card, | ||
}, | ||
props: { | ||
title: { | ||
default: 'Título', | ||
} | ||
}, | ||
data() { | ||
return { | ||
dropTarget: cardTarget, | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
|
||
<style lang="scss" scoped> | ||
@import './stylesheets/variables'; | ||
|
||
.list-wrapper { | ||
background-color: $list-bg; | ||
border-radius: 4px; | ||
} | ||
|
||
.list { | ||
display: flex; | ||
flex-flow: column; | ||
padding: 0 8px; | ||
height: 100%; | ||
|
||
&__header { | ||
font-weight: 600; | ||
font-size: 14px; | ||
flex: 40px 0 0; | ||
line-height: 40px; | ||
} | ||
|
||
&__content { | ||
background-color: $list-content-bg; | ||
flex: 100% 1 1; | ||
border-radius: 4px; | ||
padding: 8px; | ||
} | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$font-family: 'Helvetica Neue', Helvetica, 'Open Sans', sans-serif; | ||
|
||
$body-bg: #6c34b4; | ||
$body-color: #4d4d4d; | ||
$card-bg: #f6f6f6; | ||
$color: #7000ff; | ||
$header-bg: #4e2187; | ||
$list-bg: #e2e4e6; | ||
$list-content-bg: #ecedee; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div id="app"> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Trellaw</title> | ||
<%= stylesheet_pack_tag 'trellaw' %> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cual fue la logica para separa estos dos archivos? el "pack" y el "script"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ¿Cómo? El stylesheet_pack_tag extrae el css de los componentes |
||
<%= javascript_pack_tag 'trellaw' %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
<body> | ||
|
||
<%= yield %> | ||
|
||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
test: /.vue$/, | ||
loader: 'vue-loader', | ||
options: { | ||
extractCSS: true, | ||
loaders: { | ||
js: 'babel-loader', | ||
file: 'file-loader', | ||
scss: 'vue-style-loader!css-loader!postcss-loader!sass-loader', | ||
sass: 'vue-style-loader!css-loader!postcss-loader!sass-loader?indentedSyntax' | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ese
~
es para ser mas declarativo en que se busque ennode_modules
??There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si, es para evitar que webpack lo tome como path relativa.
https://github.com/webpack-contrib/sass-loader#imports