From 8c2b2cee1f8701479bafbd69069847e50e8f0d67 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 6 Nov 2022 04:30:51 +0300 Subject: webpack -> postcss+esbuild --- vnext/src/index.css | 1 + vnext/src/index.js | 10 +++++ vnext/src/ui/Avatar.css | 20 --------- vnext/src/ui/Avatar.js | 2 - vnext/src/ui/Button.css | 13 ------ vnext/src/ui/Button.js | 2 - vnext/src/ui/Chat.css | 9 ---- vnext/src/ui/Chat.js | 1 - vnext/src/ui/Login.css | 103 ---------------------------------------------- vnext/src/ui/Login.js | 1 - vnext/src/ui/UserInfo.css | 11 ----- vnext/src/ui/UserInfo.js | 2 - 12 files changed, 11 insertions(+), 164 deletions(-) delete mode 100644 vnext/src/ui/Avatar.css delete mode 100644 vnext/src/ui/Button.css delete mode 100644 vnext/src/ui/Chat.css delete mode 100644 vnext/src/ui/Login.css delete mode 100644 vnext/src/ui/UserInfo.css (limited to 'vnext/src') diff --git a/vnext/src/index.css b/vnext/src/index.css index 32ef7b26..6256a3aa 100644 --- a/vnext/src/index.css +++ b/vnext/src/index.css @@ -1,3 +1,4 @@ +@import url("evil-icons/assets/evil-icons.css"); @custom-media --viewport-desktop (width >=62.5rem); @custom-media --viewport-mobile (width < 62.5rem); diff --git a/vnext/src/index.js b/vnext/src/index.js index 6c557ae7..fd5024c9 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -1,3 +1,13 @@ +import 'core-js/modules/es.array.map'; +import 'core-js/modules/es.map'; +import 'core-js/modules/es.object.create'; +import 'core-js/modules/es.object.define-property'; +import 'core-js/modules/es.object.set-prototype-of'; +import 'core-js/modules/es.promise'; +import 'core-js/modules/es.set'; +import 'core-js/modules/es.symbol'; +import 'core-js/modules/web.dom-collections.iterator'; +import 'url-polyfill'; import { StrictMode, lazy } from 'react'; import { hydrateRoot } from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; diff --git a/vnext/src/ui/Avatar.css b/vnext/src/ui/Avatar.css deleted file mode 100644 index 9f7d22e3..00000000 --- a/vnext/src/ui/Avatar.css +++ /dev/null @@ -1,20 +0,0 @@ -.Avatar { - display: flex; -} -.msg-avatar { - max-height: 48px; - margin-right: 10px; - max-width: 48px; -} -.msg-avatar img { - max-height: 48px; - vertical-align: top; - max-width: 48px; -} - -.info-avatar img { - max-height: 48px; - max-width: 48px; - padding: 6px; - vertical-align: middle; -} diff --git a/vnext/src/ui/Avatar.js b/vnext/src/ui/Avatar.js index 04ec5910..0de225b2 100644 --- a/vnext/src/ui/Avatar.js +++ b/vnext/src/ui/Avatar.js @@ -3,8 +3,6 @@ import { Link } from 'react-router-dom'; import Icon from './Icon'; -import './Avatar.css'; - /** * @typedef {object} AvatarProps * @property {import('../api').User} user diff --git a/vnext/src/ui/Button.css b/vnext/src/ui/Button.css deleted file mode 100644 index 539e6d36..00000000 --- a/vnext/src/ui/Button.css +++ /dev/null @@ -1,13 +0,0 @@ -.Button { - background: #fff; - border: 1px solid var(--border-color); - color: #888; - cursor: pointer; - display: inline-block; - margin: 5px; - padding: 4px 10px; -} -.Button:hover { - background: #f8f8f8; - border-bottom: 1px solid #ff339a; -} diff --git a/vnext/src/ui/Button.js b/vnext/src/ui/Button.js index 3e49224d..2c315e46 100644 --- a/vnext/src/ui/Button.js +++ b/vnext/src/ui/Button.js @@ -1,7 +1,5 @@ import { memo } from 'react'; -import './Button.css'; - /** * @param {import('react').ClassAttributes & import('react').ButtonHTMLAttributes} props */ diff --git a/vnext/src/ui/Chat.css b/vnext/src/ui/Chat.css deleted file mode 100644 index 1ea35840..00000000 --- a/vnext/src/ui/Chat.css +++ /dev/null @@ -1,9 +0,0 @@ -.Chat_messages { - box-sizing: border-box; - padding: 0 20px; - overflow-y: auto; - height: 100%; - display: flex; - flex-direction: column-reverse; - width: 100%; -} diff --git a/vnext/src/ui/Chat.js b/vnext/src/ui/Chat.js index 93ed347e..0f8f53ba 100644 --- a/vnext/src/ui/Chat.js +++ b/vnext/src/ui/Chat.js @@ -8,7 +8,6 @@ import UserInfo from './UserInfo'; import { getChat, pm } from '../api'; -import './Chat.css'; import { useVisitor } from './VisitorContext'; import { Helmet } from 'react-helmet'; diff --git a/vnext/src/ui/Login.css b/vnext/src/ui/Login.css deleted file mode 100644 index 46d16878..00000000 --- a/vnext/src/ui/Login.css +++ /dev/null @@ -1,103 +0,0 @@ -@custom-media --viewport-desktop (width >=62.5rem); - -#dialogt { - height: 100%; - left: 0; - position: fixed; - top: 0; - width: 100%; - z-index: 10; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(0, 0, 0, 30%); -} -#dialogw { - z-index: 11; - max-width: 96%; - max-height: calc(100% - 100px); - background-color: #fff; -} -#dialogw a { - display: block; -} -#dialogw img { - max-height: 100%; - max-height: 90vh; - max-width: 100%; -} -#dialog_header { - width: 100%; - height: 44px; - display: flex; - flex-direction: row-reverse; - align-items: center; -} -.header_image { - background: rgba(0, 0, 0, 28%); -} -#dialogc { - cursor: pointer; - color: #ccc; - padding-right: 6px; -} -.dialoglogin { - background: #fff; - padding: 25px; - margin: 0 auto; -} -@media (--viewport-desktop) { - .dialoglogin { - width: 300px; - } -} -.dialog-opened { - overflow: hidden; -} -#signemail, -#signfb, -#signvk { - display: block; - line-height: 32px; - margin: 10px 0; - text-decoration: none; - width: 100%; -} -#signvk { - margin-bottom: 30px; -} -.dialoglogin form { - margin-top: 7px; -} -.signinput, -.signsubmit { - border: 1px solid #CCC; - margin: 3px 0; - padding: 3px; -} -.signsubmit { - width: 70px; -} -.dialogshare { - background: #fff; - min-width: 300px; - overflow: auto; - padding: 20px; -} -.dialogl { - background: #fff; - border: 1px solid #DDD; - margin: 3px 0 20px; - padding: 5px; -} -.dialogshare li { - float: left; - margin: 5px 10px 0 0; -} -.dialogshare a { - display: block; -} -.dialogtxt { - background: #fff; - padding: 20px; -} diff --git a/vnext/src/ui/Login.js b/vnext/src/ui/Login.js index 07b0a2a3..58d1a16b 100644 --- a/vnext/src/ui/Login.js +++ b/vnext/src/ui/Login.js @@ -7,7 +7,6 @@ import { useForm } from 'react-hook-form'; import { me, facebookLink, vkLink, appleLink } from '../api'; -import './Login.css'; import { useVisitor } from './VisitorContext'; /** diff --git a/vnext/src/ui/UserInfo.css b/vnext/src/ui/UserInfo.css deleted file mode 100644 index 3e692a86..00000000 --- a/vnext/src/ui/UserInfo.css +++ /dev/null @@ -1,11 +0,0 @@ -.userinfo { - padding: 40px; - background-color: #fdfdfe; - margin: 12px; -} -.info-avatar img { - max-height: 36px; - max-width: 36px; - padding: 6px; - vertical-align: middle; -} diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js index 91e3b5cf..6a394b86 100644 --- a/vnext/src/ui/UserInfo.js +++ b/vnext/src/ui/UserInfo.js @@ -7,8 +7,6 @@ import Avatar from './Avatar'; import Icon from './Icon'; import defaultAvatar from '../assets/av-96.png'; -import './UserInfo.css'; - let isMounted; /** -- cgit v1.2.3