Skip to content

Commit

Permalink
removed homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed May 15, 2022
1 parent 86a3210 commit 99f68e1
Show file tree
Hide file tree
Showing 26 changed files with 23 additions and 1,417 deletions.
2 changes: 1 addition & 1 deletion frontend/.eslintrc.yml → .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parser: '@typescript-eslint/parser'
parserOptions:
project:
- tsconfig.json
- frontend/tsconfig.json
extends:
- 'plugin:@typescript-eslint/all'
plugins:
Expand Down
15 changes: 15 additions & 0 deletions backend/node_modules/.yarn-integrity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions backend/tabby/app/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.urls import path, include
from rest_framework import routers
from . import app_version, auth, config, gateway, info, user
from . import app_version, auth, config, gateway, user


router = routers.DefaultRouter(trailing_slash=False)
Expand All @@ -10,7 +10,6 @@
urlpatterns = [
path('api/1/auth/logout', auth.LogoutView.as_view()),
path('api/1/user', user.UserViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
path('api/1/instance-info', info.InstanceInfoViewSet.as_view({'get': 'retrieve'})),
path('api/1/gateways/choose', gateway.ChooseGatewayViewSet.as_view({'post': 'retrieve'})),


Expand Down
21 changes: 0 additions & 21 deletions backend/tabby/app/api/info.py

This file was deleted.

8 changes: 0 additions & 8 deletions backend/tabby/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@
'GA_ID',
'GA_DOMAIN',
'ENABLE_LOGIN',
'ENABLE_HOMEPAGE',
]:
globals()[key] = os.getenv(key)

Expand All @@ -201,13 +200,6 @@
globals()[key] = int(globals()[key]) if globals()[key] else None


for key in [
'ENABLE_LOGIN',
'ENABLE_HOMEPAGE',
]:
globals()[key] = globals()[key] == 'True'


for key in [
'CONNECTION_GATEWAY_AUTH_CA',
'CONNECTION_GATEWAY_AUTH_CERTIFICATE',
Expand Down
4 changes: 4 additions & 0 deletions backend/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ services:
environment:
- DATABASE_URL=mysql://root:123@db/tabby
- PORT=80
- ENABLE_HOMEPAGE=False
- DEBUG=False
- APP_DIST_STORAGE=file:///app-dist
- DOCKERIZE_ARGS="-wait tcp://db:3306 -timeout 60s"
Expand Down
18 changes: 0 additions & 18 deletions frontend/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import { HttpClient } from '@angular/common/http'
import { Injectable } from '@angular/core'
import { Resolve } from '@angular/router'

export interface User {
id: number
active_config: number
Expand All @@ -27,23 +23,9 @@ export interface Version {
plugins: string[]
}

export interface InstanceInfo {
login_enabled: boolean
homepage_enabled: boolean
}

export interface Gateway {
host: string
port: number
url: string
auth_token: string
}

@Injectable({ providedIn: 'root' })
export class InstanceInfoResolver implements Resolve<Promise<InstanceInfo>> {
constructor (private http: HttpClient) { }

resolve (): Promise<InstanceInfo> {
return this.http.get('/api/1/instance-info').toPromise() as Promise<InstanceInfo>
}
}
4 changes: 2 additions & 2 deletions frontend/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import '@fortawesome/fontawesome-svg-core/styles.css'
const ROUTES = [
{
path: '',
loadChildren: () => import(/* webpackChunkName: "homepage" */'./homepage').then(m => m.HomepageModule),
loadChildren: () => import(/* webpackChunkName: "app" */'./app').then(m => m.ApplicationModule),
},
{
path: 'app',
loadChildren: () => import(/* webpackChunkName: "app" */'./app').then(m => m.ApplicationModule),
redirectTo: '/',
},
{
path: 'login',
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ import { ConfigModalComponent } from './components/configModal.component'
import { SettingsModalComponent } from './components/settingsModal.component'
import { ConnectionListComponent } from './components/connectionList.component'
import { UpgradeModalComponent } from './components/upgradeModal.component'
import { InstanceInfoResolver } from 'src/api'
import { CommonAppModule } from 'src/common'

const ROUTES = [
{
path: '',
component: MainComponent,
resolve: {
instanceInfo: InstanceInfoResolver,
},
},
]

Expand Down
6 changes: 0 additions & 6 deletions frontend/src/homepage/components/demoTerminal.component.pug

This file was deleted.

53 changes: 0 additions & 53 deletions frontend/src/homepage/components/demoTerminal.component.scss

This file was deleted.

110 changes: 0 additions & 110 deletions frontend/src/homepage/components/demoTerminal.component.ts

This file was deleted.

34 changes: 0 additions & 34 deletions frontend/src/homepage/components/home.component.pug

This file was deleted.

Loading

0 comments on commit 99f68e1

Please sign in to comment.