Compare commits

..

2 Commits

Author SHA1 Message Date
Primakov Alexandr Alexandrovich
e21b41f9ca 3.1.1
Some checks failed
platform/bro/pipeline/head This commit looks good
platform/gitea-bro-js/journal.pl/pipeline/head There was a failure building this commit
platform/bro/pipeline/tag This commit looks good
2024-08-12 00:05:37 +03:00
Primakov Alexandr Alexandrovich
cb3629bd43 global __webpack_public_path__ 2024-08-12 00:05:30 +03:00
4 changed files with 21 additions and 21 deletions

4
index.d.ts vendored
View File

@ -1,4 +1,6 @@
declare module '*.svg' { declare module '*.svg' {
const src: string; const src: string;
export default src; export default src;
} }
declare const __webpack_public_path__: string;

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "journal.pl", "name": "journal.pl",
"version": "3.1.0", "version": "3.1.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "journal.pl", "name": "journal.pl",
"version": "3.1.0", "version": "3.1.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@brojs/cli": "^0.0.4-alpha.9", "@brojs/cli": "^0.0.4-alpha.9",

View File

@ -1,6 +1,6 @@
{ {
"name": "journal.pl", "name": "journal.pl",
"version": "3.1.0", "version": "3.1.1",
"description": "bro-js platform journal ui repo", "description": "bro-js platform journal ui repo",
"main": "./src/index.tsx", "main": "./src/index.tsx",
"scripts": { "scripts": {

View File

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { Helmet } from 'react-helmet'; import { Helmet } from 'react-helmet';
import { Global, css } from '@emotion/react' import { Global, css } from '@emotion/react'
import { BrowserRouter } from 'react-router-dom'; import { BrowserRouter } from 'react-router-dom';
import ruLocale from 'dayjs/locale/ru'; import ruLocale from 'dayjs/locale/ru';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
@ -10,16 +10,15 @@ import { Dashboard } from './dashboard';
dayjs.locale('ru', ruLocale); dayjs.locale('ru', ruLocale);
const App = ({ store }) => { const App = ({ store }) => (
return( <ChakraProvider>
<ChakraProvider> <BrowserRouter>
<BrowserRouter> <Helmet>
<Helmet> <meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="viewport" content="width=device-width, user-scalable=no" /> <title>Журнал</title>
<title>Журнал</title> </Helmet>
</Helmet> <Global
<Global styles={css`
styles={css`
html { html {
height: 100%; height: 100%;
max-width: 100%; max-width: 100%;
@ -76,12 +75,11 @@ const App = ({ store }) => {
font-style: normal; font-style: normal;
} }
`} `}
/> />
<Dashboard store={store} /> <Dashboard store={store} />
</BrowserRouter> </BrowserRouter>
</ChakraProvider> </ChakraProvider>
) )
}
export default App; export default App;