Skip to content

Commit 4641736

Browse files
Update project (#97)
1 parent e853655 commit 4641736

File tree

299 files changed

+30909
-30215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+30909
-30215
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"es6": true
88
},
99
"rules": {
10+
"code": 120,
1011
"prettier/prettier": "error"
1112
},
1213
"globals": {}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"singleQuote": true,
33
"trailingComma": "es5",
4-
"printWidth": 80
4+
"printWidth": 120
55
}

CODE_OF_CONDUCT.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,28 @@ If you see someone who is making an extra effort to ensure our community is welc
2020

2121
The following behaviors are expected and requested of all community members:
2222

23-
* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
24-
* Exercise consideration and respect in your speech and actions.
25-
* Attempt collaboration before conflict.
26-
* Refrain from demeaning, discriminatory, or harassing behavior and speech.
27-
* Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
28-
* Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
23+
- Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
24+
- Exercise consideration and respect in your speech and actions.
25+
- Attempt collaboration before conflict.
26+
- Refrain from demeaning, discriminatory, or harassing behavior and speech.
27+
- Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
28+
- Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
2929

3030
## 4. Unacceptable Behavior
3131

3232
The following behaviors are considered harassment and are unacceptable within our community:
3333

34-
* Violence, threats of violence or violent language directed against another person.
35-
* Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
36-
* Posting or displaying sexually explicit or violent material.
37-
* Posting or threatening to post other people’s personally identifying information ("doxing").
38-
* Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
39-
* Inappropriate photography or recording.
40-
* Inappropriate physical contact. You should have someone’s consent before touching them.
41-
* Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
42-
* Deliberate intimidation, stalking or following (online or in person).
43-
* Advocating for, or encouraging, any of the above behavior.
44-
* Sustained disruption of community events, including talks and presentations.
34+
- Violence, threats of violence or violent language directed against another person.
35+
- Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
36+
- Posting or displaying sexually explicit or violent material.
37+
- Posting or threatening to post other people’s personally identifying information ("doxing").
38+
- Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
39+
- Inappropriate photography or recording.
40+
- Inappropriate physical contact. You should have someone’s consent before touching them.
41+
- Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
42+
- Deliberate intimidation, stalking or following (online or in person).
43+
- Advocating for, or encouraging, any of the above behavior.
44+
- Sustained disruption of community events, including talks and presentations.
4545

4646
## 5. Consequences of Unacceptable Behavior
4747

@@ -63,8 +63,6 @@ Additionally, community organizers are available to help community members engag
6363

6464
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify Alexander Ivanov with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies.
6565

66-
67-
6866
## 8. Scope
6967

7068
We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues–online and in-person–as well as in all one-on-one communications pertaining to community business.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
If you have something to add, go ahead.
44
Transparency and simplicity are supported as:
55

6-
* Short syllable in the main file (readme.md is fine)
7-
* Detailed description in issues (Its are fine too)
6+
- Short syllable in the main file (readme.md is fine)
7+
- Detailed description in issues (Its are fine too)

extra/hslToHex.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
* @return {string} The HEX representation
1010
*/
1111

12-
var hslToHex = function(h, s, l) {
13-
var hue2rgb = function(p, q, t) {
12+
var hslToHex = function (h, s, l) {
13+
var hue2rgb = function (p, q, t) {
1414
if (t < 0) t += 1;
1515
if (t > 1) t -= 1;
1616
if (t < 1 / 6) return p + (q - p) * 6 * t;
1717
if (t < 1 / 2) return q;
1818
if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
1919
return p;
2020
};
21-
var toHex = function(x) {
21+
var toHex = function (x) {
2222
var hex = Math.round(x * 255).toString(16);
2323
return hex.length === 1 ? '0' + hex : hex;
2424
};

gulpfile.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ const ms = require('merge-stream');
1212

1313
const packageJson = require('./package.json');
1414

15-
const watchDelay =
16-
(packageJson.devSettings ? packageJson.devSettings.watchDelay : undefined) ||
17-
1000;
15+
const watchDelay = (packageJson.devSettings ? packageJson.devSettings.watchDelay : undefined) || 1000;
1816

1917
gulp.task('br', function (done) {
2018
// console.log('asdfsdf', path.normalize(`${process.cwd()}/`));
@@ -26,12 +24,7 @@ gulp.task('br', function (done) {
2624
const config = JSON.parse(fs.readFileSync(path.join(snippet, 'config.json')));
2725
console.log(snippet);
2826
del.sync('./dist/');
29-
let src = [
30-
`${snippet}**/*.js`,
31-
`${snippet}**/*.ts`,
32-
`${snippet}**/*.html`,
33-
`${snippet}appsscript.json`,
34-
];
27+
let src = [`${snippet}**/*.js`, `${snippet}**/*.ts`, `${snippet}**/*.html`, `${snippet}appsscript.json`];
3528
let claspConfig = '';
3629
if (!config.type) throw new Error('USER CONFIG ERROR: type requeried');
3730
if (config.type === 'single') claspConfig = `${snippet}.clasp.json`;
@@ -71,9 +64,7 @@ gulp.task('copy-sheet', function () {
7164
.src('./templates/sheet_snippet/**/*.*', {
7265
base: './templates/sheet_snippet',
7366
})
74-
.pipe(
75-
gulp.dest(`./snippets/sheets/_auto_${arg.name || new Date().getTime()}`)
76-
);
67+
.pipe(gulp.dest(`./snippets/sheets/_auto_${arg.name || new Date().getTime()}`));
7768
});
7869

7970
gulp.task(

0 commit comments

Comments
 (0)