Skip to content

Update project #97

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

Merged
merged 4 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"es6": true
},
"rules": {
"code": 120,
"prettier/prettier": "error"
},
"globals": {}
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 80
"printWidth": 120
}
36 changes: 17 additions & 19 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@ If you see someone who is making an extra effort to ensure our community is welc

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

* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
* Exercise consideration and respect in your speech and actions.
* Attempt collaboration before conflict.
* Refrain from demeaning, discriminatory, or harassing behavior and speech.
* 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.
* Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
- Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
- Exercise consideration and respect in your speech and actions.
- Attempt collaboration before conflict.
- Refrain from demeaning, discriminatory, or harassing behavior and speech.
- 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.
- Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.

## 4. Unacceptable Behavior

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

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

## 5. Consequences of Unacceptable Behavior

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

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.



## 8. Scope

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.
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
If you have something to add, go ahead.
Transparency and simplicity are supported as:

* Short syllable in the main file (readme.md is fine)
* Detailed description in issues (Its are fine too)
- Short syllable in the main file (readme.md is fine)
- Detailed description in issues (Its are fine too)
6 changes: 3 additions & 3 deletions extra/hslToHex.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
* @return {string} The HEX representation
*/

var hslToHex = function(h, s, l) {
var hue2rgb = function(p, q, t) {
var hslToHex = function (h, s, l) {
var hue2rgb = function (p, q, t) {
if (t < 0) t += 1;
if (t > 1) t -= 1;
if (t < 1 / 6) return p + (q - p) * 6 * t;
if (t < 1 / 2) return q;
if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
return p;
};
var toHex = function(x) {
var toHex = function (x) {
var hex = Math.round(x * 255).toString(16);
return hex.length === 1 ? '0' + hex : hex;
};
Expand Down
15 changes: 3 additions & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ const ms = require('merge-stream');

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

const watchDelay =
(packageJson.devSettings ? packageJson.devSettings.watchDelay : undefined) ||
1000;
const watchDelay = (packageJson.devSettings ? packageJson.devSettings.watchDelay : undefined) || 1000;

gulp.task('br', function (done) {
// console.log('asdfsdf', path.normalize(`${process.cwd()}/`));
Expand All @@ -26,12 +24,7 @@ gulp.task('br', function (done) {
const config = JSON.parse(fs.readFileSync(path.join(snippet, 'config.json')));
console.log(snippet);
del.sync('./dist/');
let src = [
`${snippet}**/*.js`,
`${snippet}**/*.ts`,
`${snippet}**/*.html`,
`${snippet}appsscript.json`,
];
let src = [`${snippet}**/*.js`, `${snippet}**/*.ts`, `${snippet}**/*.html`, `${snippet}appsscript.json`];
let claspConfig = '';
if (!config.type) throw new Error('USER CONFIG ERROR: type requeried');
if (config.type === 'single') claspConfig = `${snippet}.clasp.json`;
Expand Down Expand Up @@ -71,9 +64,7 @@ gulp.task('copy-sheet', function () {
.src('./templates/sheet_snippet/**/*.*', {
base: './templates/sheet_snippet',
})
.pipe(
gulp.dest(`./snippets/sheets/_auto_${arg.name || new Date().getTime()}`)
);
.pipe(gulp.dest(`./snippets/sheets/_auto_${arg.name || new Date().getTime()}`));
});

gulp.task(
Expand Down
Loading