This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
1,262 additions
and
33,615 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
nodejs 8.9.4 | ||
nodejs 8.10.0 | ||
python 2.7.14 |
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,3 @@ | ||
{ | ||
"javascript.validate.enable": false | ||
} |
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,21 +1,24 @@ | ||
FROM node:8.9.4 | ||
FROM node:8.10.0 | ||
LABEL maintainer="Nano Labs <engineering@nano.co>" | ||
|
||
RUN curl -sSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | ||
RUN echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list | ||
RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | ||
RUN curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | ||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
RUN echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google.list | ||
|
||
RUN apt-get update | ||
RUN apt-get install -qq --no-install-recommends google-chrome-stable | ||
RUN apt-get install -qq --no-install-recommends yarn=1.5.1 google-chrome-stable | ||
|
||
RUN useradd -s /bin/bash -mb /usr/src app | ||
USER app | ||
WORKDIR /usr/src/app | ||
|
||
COPY --chown=app:app package.json . | ||
COPY --chown=app:app package-lock.json . | ||
RUN npm install | ||
COPY --chown=app:app yarn.lock . | ||
|
||
RUN yarn install --frozen-lockfile --non-interactive | ||
|
||
COPY --chown=app:app . . | ||
|
||
EXPOSE 4200 7020 7357 9222 | ||
CMD ["npm", "start"] | ||
CMD ["yarn", "start"] |
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,32 @@ | ||
import Component from '@ember/component'; | ||
|
||
import { observes } from 'ember-decorators/object'; | ||
import { on } from 'ember-decorators/object/evented'; | ||
|
||
export const MINIMUM_LENGTH = 64; | ||
|
||
export default Component.extend({ | ||
value: null, | ||
|
||
attributeBindings: ['value:title', 'translate'], | ||
translate: false, | ||
|
||
head: null, | ||
body: null, | ||
tail: null, | ||
|
||
@on('init') | ||
@observes('value') | ||
valueDidChange() { | ||
const value = this.get('value'); | ||
if (value) { | ||
const str = String(value); | ||
if (str.length >= MINIMUM_LENGTH) { | ||
const head = str.slice(0, 10); | ||
const body = str.slice(11, -5); | ||
const tail = str.slice(-5); | ||
this.setProperties({ head, body, tail }); | ||
} | ||
} | ||
}, | ||
}); |
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,14 @@ | ||
span { | ||
&:first-child, | ||
&:last-child { | ||
font-weight: bold; | ||
} | ||
|
||
&:first-child { | ||
color: $light-blue; | ||
} | ||
|
||
&:last-child { | ||
color: $orange; | ||
} | ||
} |
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,3 @@ | ||
{{!-- {{#if value}} --}} | ||
<span>{{head}}</span><span class="middle">{{body}}</span><span>{{tail}}</span> | ||
{{!-- {{/if}} --}} |
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
Oops, something went wrong.