From 166c1acb423745790f70ff0fe20908a323148e65 Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Thu, 9 Nov 2023 09:13:24 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B3=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=20=D0=BA=203=20=D0=BB=D0=B0=D0=B1=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.json | 20 + data.json | 30 + feed.html | 763 +++++------ friends.html | 3 +- jsconfig.json | 14 + login.html | 3 +- me.html | 3 +- messages.html | 3 +- package-lock.json | 2575 +++++++++++++++++++++++++++++++++++++- package.json | 23 +- static/css/avatar.css | 5 +- static/css/base.css | 10 + static/css/center.css | 6 + static/css/post.css | 14 + static/img/favicon.svg | 13 + static/js/apiendpoint.js | 110 ++ static/js/feed.js | 49 + static/js/posts.js | 65 + vite.config.js | 19 + 19 files changed, 3336 insertions(+), 392 deletions(-) create mode 100644 .eslintrc.json create mode 100644 data.json create mode 100644 jsconfig.json create mode 100644 static/img/favicon.svg create mode 100644 static/js/apiendpoint.js create mode 100644 static/js/feed.js create mode 100644 static/js/posts.js create mode 100644 vite.config.js diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..1b52cd0 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,20 @@ +{ + "env": { + "browser": true, + "es2021": true + }, + "extends": "airbnb-base", + "parserOptions": { + "ecmaVersion": 12, + "sourceType": "module" + }, + "rules": { + "quotes": "off", + "indent": "off", + "no-console": "off", + "no-use-before-define": "off", + "no-alert": "off", + "no-restricted-globals": "off", + "quote-props": "off" + } +} diff --git a/data.json b/data.json new file mode 100644 index 0000000..7880b34 --- /dev/null +++ b/data.json @@ -0,0 +1,30 @@ +{ + "users": [ + { + "id": 1, + "firstName": "Никита", + "lastName": "Потапов", + "birthday": "17.02.2003", + "address": "г. Ульяновск", + "username": "nspotapov", + "password": "admin", + "avatarImg": "korgi.jpg" + } + ], + "posts": [ + { + "id": 1, + "userId": 1, + "createdDateTime": "2020-09-17T09:15:27+00:00", + "text": "

Lorem, ipsum dolor sit amet consectetur adipisicing elit.

Perferendis odit quaerat reprehenderit. Ea harum officiis, ipsum numquam quis id eaque ducimus praesentium inventore error, voluptas, aut consequuntur sed libero sit.

", + "img": null + }, + { + "id": 2, + "userId": 1, + "createdDateTime": "2020-09-20T14:45:27+00:00", + "text": "

Lorem, ipsum dolor sit amet consectetur adipisicing elit.

Perferendis odit quaerat reprehenderit. Ea harum officiis, ipsum numquam quis id eaque ducimus praesentium inventore error, voluptas, aut consequuntur sed libero sit.

", + "img": "./static/img/korgi.jpg" + } + ] +} diff --git a/feed.html b/feed.html index 6307e3a..3b8a7c6 100644 --- a/feed.html +++ b/feed.html @@ -13,10 +13,11 @@ - Неконтакте + + Новости - +
-
+
-
-
-
- - -