forked from rauchg/slackin
-
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.
Merge remote-tracking branch 'upstream/master' into not-ok
- Loading branch information
Showing
10 changed files
with
89 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
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 +1 @@ | ||
web: make && bin/slackin --channel "$SLACK_CHANNEL" --port $PORT $SLACK_SUBDOMAIN $SLACK_API_TOKEN | ||
web: make && bin/slackin --channels "$SLACK_CHANNELS" --port $PORT $SLACK_SUBDOMAIN $SLACK_API_TOKEN |
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
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
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,15 +1,16 @@ | ||
|
||
import dom from 'vd'; | ||
|
||
export default function splash({ name, logo, active, total, channel, iframe }){ | ||
export default function splash({ name, logo, active, total, channels, iframe }){ | ||
let div = dom('.splash', | ||
!iframe && dom('.logos', | ||
logo && dom('.logo.org'), | ||
dom('.logo.slack') | ||
), | ||
dom('p', | ||
dom('p', | ||
'Join ', dom('b', name), | ||
channel && dom('span', ' #', channel), | ||
// mention single single-channel inline | ||
channels && channels.length === 1 && dom('span', ' #', channels[0]), | ||
' on Slack.' | ||
), | ||
dom('p.status', | ||
|
@@ -21,7 +22,13 @@ export default function splash({ name, logo, active, total, channel, iframe }){ | |
: [dom('b.total', total), ' users are registered so far.'] | ||
), | ||
dom('form', | ||
dom('input type=email [email protected] ' | ||
// channel selection when there are multiple | ||
channels && channels.length > 1 && dom('select.form-item name=channel', | ||
channels.map(channel => { | ||
return dom('option', { value: channel, text: channel }); | ||
}) | ||
), | ||
dom('input.form-item type=email [email protected] ' | ||
+ (!iframe ? 'autofocus' : '')), | ||
dom('button.loading', 'Get my Invite') | ||
), | ||
|
@@ -127,10 +134,15 @@ function style({ logo, active, iframe } = {}){ | |
}); | ||
} | ||
|
||
css.add('button, input', { | ||
css.add('select', { | ||
'background': 'none' | ||
}); | ||
|
||
css.add('button, .form-item', { | ||
'font-size': '12px', | ||
'height': '32px', | ||
'line-height': '32px', | ||
'margin-top': iframe ? '5px' : '10px', | ||
'vertical-align': 'middle', | ||
'display': 'block', | ||
'text-align': 'center', | ||
|
@@ -140,7 +152,6 @@ function style({ logo, active, iframe } = {}){ | |
|
||
css.add('button', { | ||
'color': '#fff', | ||
'margin-top': iframe ? '5px' : '10px', | ||
'font-weight': 'bold', | ||
'border-width': 0, | ||
'background': pink, | ||
|
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