Small fixes and update initial data

This commit is contained in:
IRBorisov 2024-06-04 00:25:18 +03:00
parent 58d85da72f
commit d888eada82
5 changed files with 3734 additions and 9458 deletions

File diff suppressed because it is too large Load Diff

View File

@ -141,10 +141,13 @@ function FormCreateItem() {
value={alias} value={alias}
onChange={event => setAlias(event.target.value)} onChange={event => setAlias(event.target.value)}
/> />
<div className='flex flex-col items-center gap-2'> {user?.is_staff ? (
<Label text='Тип схемы' className='self-center select-none' /> <div className='flex flex-col items-center gap-2'>
<SelectItemType value={itemType} onChange={setItemType} /> <Label text='Тип схемы' className='self-center select-none' />
</div> <SelectItemType value={itemType} onChange={setItemType} />
</div>
) : null}
<div className='flex flex-col gap-2'> <div className='flex flex-col gap-2'>
<Label text='Доступ' className='self-center select-none' /> <Label text='Доступ' className='self-center select-none' />
<div className='ml-auto cc-icons'> <div className='ml-auto cc-icons'>

View File

@ -113,9 +113,9 @@ function SearchPanel({
<div className='flex items-center h-full mx-auto'> <div className='flex items-center h-full mx-auto'>
<SearchBar <SearchBar
id='library_search' id='library_search'
placeholder='Аттрибуты' placeholder='Атрибуты'
noBorder noBorder
className='min-w-[10rem]' className='min-w-[8rem]'
value={query} value={query}
onChange={setQuery} onChange={setQuery}
/> />
@ -167,7 +167,7 @@ function SearchPanel({
placeholder='Путь' placeholder='Путь'
noIcon noIcon
noBorder noBorder
className='min-w-[10rem]' className='min-w-[5rem]'
value={path} value={path}
onChange={setPath} onChange={setPath}
/> />

View File

@ -3,7 +3,7 @@
import { useMemo } from 'react'; import { useMemo } from 'react';
import { SubscribeIcon } from '@/components/DomainIcons'; import { SubscribeIcon } from '@/components/DomainIcons';
import { IconDestroy, IconDownload, IconSave, IconShare } from '@/components/Icons'; import { IconDestroy, IconSave, IconShare } from '@/components/Icons';
import BadgeHelp from '@/components/info/BadgeHelp'; import BadgeHelp from '@/components/info/BadgeHelp';
import MiniButton from '@/components/ui/MiniButton'; import MiniButton from '@/components/ui/MiniButton';
import Overlay from '@/components/ui/Overlay'; import Overlay from '@/components/ui/Overlay';
@ -41,11 +41,6 @@ function RSFormToolbar({ modified, anonymous, subscribed, onSubmit, onDestroy }:
icon={<IconShare size='1.25rem' className='icon-primary' />} icon={<IconShare size='1.25rem' className='icon-primary' />}
onClick={controller.share} onClick={controller.share}
/> />
<MiniButton
title='Скачать TRS файл'
icon={<IconDownload size='1.25rem' className='icon-primary' />}
onClick={controller.download}
/>
{!anonymous ? ( {!anonymous ? (
<MiniButton <MiniButton
titleHtml={`Отслеживание <b>${subscribed ? 'включено' : 'выключено'}</b>`} titleHtml={`Отслеживание <b>${subscribed ? 'включено' : 'выключено'}</b>`}

View File

@ -3,11 +3,16 @@
# Create a copy in secure location @production host. Update backup scripts from repository manually # Create a copy in secure location @production host. Update backup scripts from repository manually
# ======================================== # ========================================
# Create local backup:
# python -Xutf8 manage.py dumpdata
# --exclude=admin.LogEntry --exclude=sessions --exclude=contenttypes --exclude=auth.permission
# --indent 4 -o InitialData_LI.json
# Input params # Input params
$backupLocation = "D:\DEV\backup\portal" $backupLocation = "D:\DEV\backup\portal"
$containerDB = "dev-portal-db" $containerDB = "local-portal-db"
$containerBackend = "dev-portal-backend" $containerBackend = "local-portal-backend"
$pgUser = "portal-admin" $pgUser = "portal-admin"
$pgDB = "portal-db" $pgDB = "portal-db"