Skip to content

Commit

Permalink
Remove statistic module
Browse files Browse the repository at this point in the history
  • Loading branch information
a-gubskiy committed Oct 19, 2024
1 parent 24fb38b commit 32033df
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 291 deletions.
17 changes: 0 additions & 17 deletions dev.dockerfile

This file was deleted.

14 changes: 0 additions & 14 deletions docker-compose.dev.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ecampus.kpi.ua",
"version": "2019.01.20",
"version": "2024.10.19",
"private": true,
"dependencies": {
"bootstrap": "^4.3.1",
Expand Down
8 changes: 0 additions & 8 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ import Settings from './components/Settings';
import SettingsEditor from './components/SettingsEditor';
import Help from './components/Help';
import BbIndex from './components/Bb/BbIndex';
import StatisticIndex from './components/Statistic/StatisticIndex';
import NPP from './components/Statistic/NPP';
import ZKM from './components/Statistic/ZKM';
import Feedback from './components/Feedback';
import Faq from './components/Faq';
import FindCurator from './components/FindCurator';
import Schedule from './components/Schedule';
import AuthContainerDefault from './components/AuthContainerDefault';
import AuthContainerExternal from './components/AuthContainerExternal';
import EmploymentSystem from './components/EmploymentSystem';
Expand Down Expand Up @@ -81,7 +77,6 @@ class App extends Component {
<Route exact path="/employment-system" component={EmploymentSystem} />
<Route exact path="/contacts" component={Contacts} />
<Route exact path="/bb" component={BbIndex} />
<Route exact path="/schedule" component={Schedule} />
<Route exact path="/feedback" component={Feedback} />
<Route exact path="/faq" component={Faq} />
<Route exact path="/settings" component={Settings} />
Expand All @@ -97,9 +92,6 @@ class App extends Component {
path="/social-forbidden"
component={SocialForbidden}
/>
<Route exact path="/statistic" component={StatisticIndex} />
<Route exact path="/statistic/npp" component={NPP} />
<Route exact path="/statistic/zkm" component={ZKM} />
</Switch>
</div>
</div>
Expand Down
4 changes: 0 additions & 4 deletions src/Security.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ export const hasProfile = (user, profile) => {
};

export const Modules = {
RNP: 'RNP',
Statistic: 'Statistic',
Messages: 'Messages',
PersonalArea: 'PersonalArea',
AttestationResult: 'AttestationResult',
Information: 'Information',
EmploymentSystem: 'EmploymentSystem'
};
Expand Down
54 changes: 0 additions & 54 deletions src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,28 +69,6 @@ class Header extends React.Component {
<Nav navbar>
{!!user && (
<>
{/*<UncontrolledDropdown nav>*/}
{/* <DropdownToggle nav caret>*/}
{/* Дисципліни вибору*/}
{/* </DropdownToggle>*/}
{/* <DropdownMenu>*/}
{/* <DropdownItem disabled={true} href="#">Вибір студента​</DropdownItem>*/}
{/* <DropdownItem disabled={true} href="#">Пропозиції дисциплін​</DropdownItem>*/}
{/* <DropdownItem disabled={true} href="#">Дисципліни спеціалізації</DropdownItem>*/}
{/* </DropdownMenu>*/}
{/*</UncontrolledDropdown>*/}

{Security.hasAccessToModule(
user,
Security.Modules.AttestationResult,
) && (
<NavItem>
<NavLink disabled={true} href="#">
Результати атестації
</NavLink>
</NavItem>
)}

{Security.hasAccessToModule(
user,
Security.Modules.EmploymentSystem,
Expand All @@ -103,33 +81,6 @@ class Header extends React.Component {
</NavItem>
)}

{Security.hasAccessToModule(
user,
Security.Modules.Statistic,
) && (
<UncontrolledDropdown nav>
<DropdownToggle nav caret>
Статистика
</DropdownToggle>
<DropdownMenu>
<DropdownItem href="/statistic/zkm">
Забезпечення кредитного модуля
</DropdownItem>
<DropdownItem href="/statistic/npp">
Індивідуальне навантаження викладачів
</DropdownItem>
</DropdownMenu>
</UncontrolledDropdown>
)}

{Security.hasAccessToModule(user, Security.Modules.RNP) && (
<NavItem>
<NavLink disabled={true} href="#">
РНП
</NavLink>
</NavItem>
)}

</>
)}

Expand All @@ -149,11 +100,6 @@ class Header extends React.Component {
Інструкція користувача
</DropdownItem>
<DropdownItem href="/faq">Поширенi запитання</DropdownItem>
{Security.hasProfile(user, Security.Profiles.Lecturer) && (
<DropdownItem href="/lecturer-help">
Послідовність роботи викладача
</DropdownItem>
)}
<DropdownItem href="/about">Про систему</DropdownItem>
<DropdownItem href="/documents">
Документи КПІ ім. Ігоря Сікорського
Expand Down
68 changes: 5 additions & 63 deletions src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,11 @@ class Home extends React.Component {
Перейти до анкети {' '}
<i className='fa fa-external-link' />
</a>
<span className='btn btn-primary btn-lg btn-home disabled'
style={{ backgroundColor: '#FF0000', borderColor: '#FF8800' }}
href='https://youtube.com/'>
Переглянути інструкцію {' '}
<i className="fa fa-youtube-play" aria-hidden="true"></i>
</span>
{/*<span className='btn btn-primary btn-lg btn-home disabled'*/}
{/* style={{ backgroundColor: '#FF0000', borderColor: '#FF8800' }}>*/}
{/* Переглянути інструкцію {' '}*/}
{/* <i className="fa fa-youtube-play" aria-hidden="true"></i>*/}
{/*</span>*/}
</p>
</div>
</div>
Expand Down Expand Up @@ -179,63 +178,6 @@ class Home extends React.Component {
</div>

<div className='col-md-4'>
{/*<h3>Дисципліни вибору</h3>*/}

{/*<ul>*/}
{/* <li><span href="#">Вибір студента</span><span className="badge badge-light">У розробцi</span></li>*/}
{/* <li><span href="#">Пропозиції дисциплін</span><span className="badge badge-light">У розробцi</span></li>*/}
{/* <li><span href="#">Дисципліни спеціалізації</span><span className="badge badge-light">У розробцi</span></li>*/}
{/*</ul>*/}

{Security.hasAccessToModule(
user,
Security.Modules.AttestationResult,
) && (
<h3>
<span href='#'>Результати атестації</span>
<span className='badge badge-light'>У розробцi</span>
</h3>
)}

{Security.hasAccessToModule(
user,
Security.Modules.Statistic,
) && <h3>Статистика</h3>}

{Security.hasAccessToModule(
user,
Security.Modules.Statistic,
) && (
<ul>
<li>
<Link to='/statistic/zkm'>
Забезпечення кредитного модуля
</Link>
</li>
<li>
<Link to='/statistic/npp'>
Індивідуальне навантаження викладачів
</Link>
</li>
</ul>
)}

{Security.hasAccessToModule(user, Security.Modules.RNP) && (
<h3>
<span href='#'>РНП</span>
<span className='badge badge-light'>У розробцi</span>
</h3>
)}

{/*{Security.hasAccessToModule(*/}
{/* user,*/}
{/* Security.Modules.Messages,*/}
{/*) && (*/}
{/* <h3>*/}
{/* <span href='#'>Повідомлення</span>*/}
{/* <span className='badge badge-light'>У розробцi</span>*/}
{/* </h3>*/}
{/*)}*/}
</div>
</div>

Expand Down
32 changes: 0 additions & 32 deletions src/components/Schedule.js

This file was deleted.

24 changes: 0 additions & 24 deletions src/components/Statistic/NPP.js

This file was deleted.

33 changes: 0 additions & 33 deletions src/components/Statistic/StatisticIndex.js

This file was deleted.

24 changes: 0 additions & 24 deletions src/components/Statistic/ZKM.js

This file was deleted.

17 changes: 0 additions & 17 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,6 @@ header {
vertical-align: middle;
}

header .logo-kpi {
margin-top: 6px;
padding: 0 15px;
width: 64px;
height: 48px;
background: url("/images/logo-kpi.png") center no-repeat;
}

.header-logo {
margin: 0 0 0 50px;
height: 60px;
Expand Down Expand Up @@ -367,10 +359,6 @@ footer:after {


@media screen and (max-width: 1200px) {
.logo-kpi {
padding: 0 46px !important;
}

.header-logo {
margin-left: 20px !important;
}
Expand Down Expand Up @@ -611,11 +599,6 @@ input[type="radio"] + label {
border-left: 1px solid rgba(0,0,0,.1);
}

.btn-statistic {
width: 100%;
margin-top: 15px;
}

.menu-icon:hover,
a:hover .menu-icon {
text-decoration: none !important;
Expand Down

0 comments on commit 32033df

Please sign in to comment.