Skip to content

Commit

Permalink
Homework for lection 33 (chat) commit #1
Browse files Browse the repository at this point in the history
  • Loading branch information
my committed Aug 30, 2022
1 parent 420f376 commit 1b63fac
Show file tree
Hide file tree
Showing 48 changed files with 26,431 additions and 7,822 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/node_modules
/dist
/.cache
/.git
/coverage
17 changes: 15 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
env: {
browser: true,
es2021: true,
jest: true,
node: true,
},
extends: ["eslint:recommended", "prettier"],
extends: [
"plugin:jest/recommended",
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"prettier",
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
indent: ["error", "tab"],
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": 0,
"no-unused-vars": 0,
"no-import-assign": 0,
// indent: ["error", 2],
indent: 0,
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
node_modules
coverage/*
!coverage/badges.svg
dist
.cache
Empty file modified .husky/pre-commit
100755 → 100644
Empty file.
Binary file added .package.json.swp
Binary file not shown.
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/node_modules
/dist
/.cache
/.git
/coverage

7 changes: 7 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": [
"stylelint-config-standard-scss",
"stylelint-config-standard",
"stylelint-config-prettier"
]
}
6 changes: 5 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module.exports = {
presets: [["@babel/preset-env", { targets: { node: "current" } }]],
presets: [
"@babel/preset-typescript",
["@babel/preset-env", { targets: { node: "current" } }],
],
plugins: ["@babel/plugin-transform-runtime"],
};
14 changes: 14 additions & 0 deletions coverage/badges.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chat</title>
</head>
<body>
<section id="#app" class="main-container">
<div class="main-container__name-container name-container">
<label class="name-container__label">Отображаемое имя: </label>
<input
class="name-container__input"
id="#name-input"
type="text"
value="me"
/>
</div>
<div
class="main-container__message-window message-window"
id="#message-window"
></div>
<div
contenteditable="true"
class="main-container__send-input"
id="#send-input"
></div>
<button id="#button-send" class="main-container__send-button">
Send
</button>
<div class="main-container__smiles-area smiles-area" id="#smiles-area">
<img src="src/img/128512.gif" alt="128512" class="smiles-area__gif" />
<img src="src/img/128521.gif" alt="128521" class="smiles-area__gif" />
<img src="src/img/129315.gif" alt="129315" class="smiles-area__gif" />
<img src="src/img/128532.gif" alt="128532" class="smiles-area__gif" />
<img src="src/img/128530.gif" alt="128530" class="smiles-area__gif" />
<img src="src/img/128556.gif" alt="128556" class="smiles-area__gif" />
<img src="src/img/128557.gif" alt="128557" class="smiles-area__gif" />
<img src="src/img/128563.gif" alt="128563" class="smiles-area__gif" />
<img src="src/img/129314.gif" alt="129314" class="smiles-area__gif" />
<img src="src/img/129392.gif" alt="129392" class="smiles-area__gif" />
<img src="src/img/129395.gif" alt="129395" class="smiles-area__gif" />
<img src="src/img/129322.gif" alt="129322" class="smiles-area__gif" />
<img src="src/img/127866.gif" alt="127866" class="smiles-area__gif" />
</div>
<img
src="src/img/sandclock.png"
alt="Sand clock"
class="main-container__clock-img main-container__clock-img--showed"
id="#sand-clock"
/>
</section>
</body>
<script src="src/script/bundle.ts"></script>
</html>
12 changes: 6 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ module.exports = {
// coverageProvider: "babel",

// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
// "json",
// "text",
// "lcov",
// "clover"
// ],
coverageReporters: ["json", "text", "lcov", "json-summary", "clover"],

// An object that configures minimum threshold enforcement for coverage results
// coverageThreshold: undefined,
Expand Down Expand Up @@ -99,6 +94,8 @@ module.exports = {
// An enum that specifies notification mode. Requires { notify: true }
// notifyMode: "failure-change",

preset: "ts-jest",

// A preset that is used as a base for Jest's configuration
// preset: undefined,

Expand Down Expand Up @@ -174,6 +171,9 @@ module.exports = {

// A map from regular expressions to paths to transformers
// transform: undefined,
transform: {
"^.+\\.jsx?$": "babel-jest",
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
Expand Down
Loading

0 comments on commit 1b63fac

Please sign in to comment.