Commit c570701c242c9ea977861c585348b6ea930a6194
install standard
mixmix committed on 8/23/2018, 5:38:21 AMParent: cefba4fb81eefbf1b0156d7fc7fd017dbef3b68f
Files changed
package-lock.json | changed |
package.json | changed |
plugs/app/page/scry-new.js | changed |
plugs/app/page/scry-show.js | changed |
plugs/styles/mcss.js | changed |
views/new.js | changed |
views/new.test.js | changed |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 83485 bytes New file size: 131900 bytes |
package.json | ||
---|---|---|
@@ -3,9 +3,10 @@ | ||
3 | 3 … | "version": "0.0.1", |
4 | 4 … | "description": "figure out a meeting time with friends, (like doodle, but for scuttlebutt)", |
5 | 5 … | "main": "plugs/index.js", |
6 | 6 … | "scripts": { |
7 | - "test": "echo \"Error: no test specified\" && exit 1" | |
7 … | + "lint": "standard --fix", | |
8 … | + "test": "standard" | |
8 | 9 … | }, |
9 | 10 … | "repository": { |
10 | 11 … | "type": "git", |
11 | 12 … | "url": "git+https://github.com/mixmix/patchbay-scry.git" |
@@ -33,7 +34,8 @@ | ||
33 | 34 … | }, |
34 | 35 … | "devDependencies": { |
35 | 36 … | "electro": "^2.1.1", |
36 | 37 … | "electron": "^2.0.7", |
37 | - "micro-css": "^2.0.1" | |
38 … | + "micro-css": "^2.0.1", | |
39 … | + "standard": "^11.0.1" | |
38 | 40 … | } |
39 | 41 … | } |
plugs/app/page/scry-new.js | ||
---|---|---|
@@ -25,9 +25,9 @@ | ||
25 | 25 … | const scuttle = Scuttle(api.sbot.obs.connection) |
26 | 26 … | const { title } = getContent(location) |
27 | 27 … | |
28 | 28 … | const page = h('Scry -show', { title: '/scry/new' }, [ |
29 | - h('h1', ['Scry', h('i.fa.fa-diamond')]), | |
29 … | + h('h1', ['Scry', h('i.fa.fa-diamond')]) | |
30 | 30 … | ]) |
31 | 31 … | |
32 | 32 … | page.scroll = () => {} // stops keyboard shortcuts from breaking |
33 | 33 … | return page |
plugs/app/page/scry-show.js | ||
---|---|---|
@@ -25,9 +25,9 @@ | ||
25 | 25 … | const scuttle = Scuttle(api.sbot.obs.connection) |
26 | 26 … | const { title } = getContent(location) |
27 | 27 … | |
28 | 28 … | const page = h('Scry -show', { title: `/scry — ${name}` }, [ |
29 | - h('h1', ['Scry', h('i.fa.fa-diamond')]), | |
29 … | + h('h1', ['Scry', h('i.fa.fa-diamond')]) | |
30 | 30 … | ]) |
31 | 31 … | |
32 | 32 … | page.scroll = () => {} // stops keyboard shortcuts from breaking |
33 | 33 … | return page |
plugs/styles/mcss.js | ||
---|---|---|
@@ -17,9 +17,9 @@ | ||
17 | 17 … | return nest('styles.mcss', mcss) |
18 | 18 … | |
19 | 19 … | function mcss (sofar = {}) { |
20 | 20 … | sofar.marama = getMaramaMCSS() |
21 | - | |
21 … | + | |
22 | 22 … | each(contents, (content, [filename]) => { |
23 | 23 … | // const name = basename(filename) |
24 | 24 … | sofar[`scry-${filename}`] = content |
25 | 25 … | }) |
views/new.js | ||
---|---|---|
@@ -49,18 +49,16 @@ | ||
49 | 49 … | ]) |
50 | 50 … | |
51 | 51 … | return page |
52 | 52 … | |
53 | - | |
54 | 53 … | function setMonth (d) { |
55 | 54 … | state.monthIndex.set(state.monthIndex() + d) |
56 | 55 … | } |
57 | 56 … | |
58 | 57 … | function MonthTitle (monthIndex) { |
59 | 58 … | const MONTHS = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ] |
60 | 59 … | |
61 | 60 … | return computed(monthIndex, mi => { |
62 | - | |
63 | 61 … | const view = new Date() |
64 | 62 … | view.setMonth(mi) |
65 | 63 … | |
66 | 64 … | return `${MONTHS[view.getMonth()]} ${view.getFullYear()}` |
@@ -86,12 +84,10 @@ | ||
86 | 84 … | const filteredEvents = state.days().filter(e => !days.includes(e)) |
87 | 85 … | state.days.set(filteredEvents) |
88 | 86 … | } |
89 | 87 … | } |
90 | - | |
91 | 88 … | } |
92 | 89 … | |
93 | - | |
94 | 90 … | function getTimezone () { |
95 | 91 … | try { |
96 | 92 … | return Intl.DateTimeFormat().resolvedOptions().timeZone |
97 | 93 … | } catch (e) { |
Built with git-ssb-web