Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scffs committed Jan 8, 2024
1 parent 3d3d21c commit 7c5706c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/AppWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import { transformVKBridgeAdaptivity } from './transformers/transformVKBridgeAda
const App = lazy(() => import('./App'))
const NotFoundCorrect = lazy(() => import('./views/NotFound'))

vkBridge.send('VKWebAppInit')

const AppWrapper = () => {
const platform = usePlatform()
const vkBridgeAdaptivityProps = transformVKBridgeAdaptivity(useAdaptivity())
Expand Down
23 changes: 23 additions & 0 deletions src/components/TechWorking.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// import { AppRoot, Button, Div } from '@vkontakte/vkui'
// import { notFoundStyle, text } from '../views/NotFound.tsx'
//
// const TechWorking = () => {
// return (
// <AppRoot style={{ overflow: 'hidden' }}>
// <Div style={notFoundStyle}>
// <h1 style={text}>Тех. работы</h1>
// <Button
// onClick={() => window.open('https://poo.tomedu.ru')}
// size='l'
// mode='outline'
// appearance='accent-invariable'
// style={{ padding: 10 }}
// >
// <span style={{ fontSize: '1.5em' }}>poo.tomedu.ru</span>
// </Button>
// </Div>
// </AppRoot>
// )
// }
//
// export default TechWorking
5 changes: 4 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { Suspense } from '@components'
import '@vkontakte/vkui/dist/vkui.css'
import { render } from 'preact'
import AppWrapper from './AppWrapper'

import vkBridge from '@vkontakte/vk-bridge'
import AppWrapper from './AppWrapper.tsx'
import './index.css'

vkBridge.send('VKWebAppInit')

render(
<Suspense id='AppWrapper' mode='screen'>
<AppWrapper />
Expand Down
1 change: 1 addition & 0 deletions src/views/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ const saveData = (basePath: ResponseLogin) => {
)} ${String(basePath.middleName)}`
const org = String(basePath.organization?.abbreviation)
const city = String(basePath.organization?.addressSettlement)
// @ts-expect-error ошибка в типах
const group = String(basePath?.groupName)

localStorage.setItem('id', userId)
Expand Down
4 changes: 2 additions & 2 deletions src/views/NotFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '@vkontakte/vkui'
import { CSSProperties, FC } from 'preact/compat'

const notFoundStyle: CSSProperties = {
export const notFoundStyle: CSSProperties = {
display: 'flex',
margin: 'auto',
height: '100vh',
Expand All @@ -20,7 +20,7 @@ const notFoundStyle: CSSProperties = {
textAlign: 'center'
}

const text: CSSProperties = {
export const text: CSSProperties = {
padding: '0px 8px',
fontFamily: 'Roboto, sans-serif',
fontSize: 80,
Expand Down
2 changes: 1 addition & 1 deletion vk-hosting-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"static_path": "dist",
"app_id": 51723411,
"app_id": 51740302,
"endpoints": {
"mobile": "index.html",
"mvk": "index.html",
Expand Down

0 comments on commit 7c5706c

Please sign in to comment.