mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
:gears: move components to better semantic folders
This commit is contained in:
parent
e524320457
commit
86ada008c5
@ -3,20 +3,20 @@ import { RouterModule, Routes } from '@angular/router';
|
|||||||
|
|
||||||
import { AdminComponent } from './pages/admin/admin.component';
|
import { AdminComponent } from './pages/admin/admin.component';
|
||||||
import { AnswersComponent } from './pages/answers/answers.component';
|
import { AnswersComponent } from './pages/answers/answers.component';
|
||||||
import { BaseComponent } from './pages/base-page/base.component';
|
import { BaseComponent } from './pages/example/base-page/base.component';
|
||||||
import { CreateOrRetrieveComponent } from './pages/create-or-retrieve/create-or-retrieve.component';
|
import { CreateOrRetrieveComponent } from './pages/create-or-retrieve/create-or-retrieve.component';
|
||||||
import { DatesComponent } from './pages/dates/dates.component';
|
import { DatesComponent } from './pages/dates/dates.component';
|
||||||
import { EndConfirmationComponent } from './pages/end-confirmation/end-confirmation.component';
|
import { EndConfirmationComponent } from './pages/end-confirmation/end-confirmation.component';
|
||||||
import { HomeComponent } from './pages/home/home.component';
|
import { HomeComponent } from './pages/home/home.component';
|
||||||
import { KindComponent } from './pages/kind/kind.component';
|
import { KindComponent } from './pages/example/kind/kind.component';
|
||||||
import { PasswordComponent } from './pages/password/password.component';
|
import { PasswordComponent } from './pages/password/password.component';
|
||||||
import { PicturesComponent } from './pages/pictures/pictures.component';
|
import { PicturesComponent } from './pages/example/pictures/pictures.component';
|
||||||
import { PollDisplayComponent } from './pages/poll-display/poll-display.component';
|
import { PollDisplayComponent } from './pages/poll/poll-display/poll-display.component';
|
||||||
import { ResumeComponent } from './pages/resume/resume.component';
|
import { ResumeComponent } from './pages/resume/resume.component';
|
||||||
import { VisibilityComponent } from './pages/visibility/visibility.component';
|
import { VisibilityComponent } from './pages/visibility/visibility.component';
|
||||||
import { VotingChoiceComponent } from './pages/voting/voting-choice/voting-choice.component';
|
import { VotingChoiceComponent } from './pages/voting/voting-choice/voting-choice.component';
|
||||||
import { VotingComponent } from './pages/voting/voting.component';
|
import { VotingComponent } from './pages/voting/voting.component';
|
||||||
import { PollGraphicComponent } from './poll-graphic/poll-graphic.component';
|
import { PollGraphicComponent } from './pages/poll/poll-graphic/poll-graphic.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: '', redirectTo: 'step/creation', pathMatch: 'full' },
|
{ path: '', redirectTo: 'step/creation', pathMatch: 'full' },
|
||||||
|
@ -24,19 +24,19 @@ import { ToastModule } from 'primeng/toast';
|
|||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { DateValueAccessorModule } from './custom-lib/date-value-accessor';
|
import { DateValueAccessorModule } from './custom-lib/date-value-accessor';
|
||||||
import { DebuggerComponent } from './debugger/debugger.component';
|
import { DebuggerComponent } from './ui/debugger/debugger.component';
|
||||||
import { HeaderComponent } from './header/header.component';
|
import { HeaderComponent } from './ui/navigation/header/header.component';
|
||||||
import { AdminComponent } from './pages/admin/admin.component';
|
import { AdminComponent } from './pages/admin/admin.component';
|
||||||
import { AnswersComponent } from './pages/answers/answers.component';
|
import { AnswersComponent } from './pages/answers/answers.component';
|
||||||
import { BaseComponent } from './pages/base-page/base.component';
|
import { BaseComponent } from './pages/example/base-page/base.component';
|
||||||
import { CreateOrRetrieveComponent } from './pages/create-or-retrieve/create-or-retrieve.component';
|
import { CreateOrRetrieveComponent } from './pages/create-or-retrieve/create-or-retrieve.component';
|
||||||
import { DatesComponent } from './pages/dates/dates.component';
|
import { DatesComponent } from './pages/dates/dates.component';
|
||||||
import { EndConfirmationComponent } from './pages/end-confirmation/end-confirmation.component';
|
import { EndConfirmationComponent } from './pages/end-confirmation/end-confirmation.component';
|
||||||
import { HomeComponent } from './pages/home/home.component';
|
import { HomeComponent } from './pages/home/home.component';
|
||||||
import { KindComponent } from './pages/kind/kind.component';
|
import { KindComponent } from './pages/example/kind/kind.component';
|
||||||
import { PasswordComponent } from './pages/password/password.component';
|
import { PasswordComponent } from './pages/password/password.component';
|
||||||
import { PicturesComponent } from './pages/pictures/pictures.component';
|
import { PicturesComponent } from './pages/example/pictures/pictures.component';
|
||||||
import { PollDisplayComponent } from './pages/poll-display/poll-display.component';
|
import { PollDisplayComponent } from './pages/poll/poll-display/poll-display.component';
|
||||||
import { ResumeComponent } from './pages/resume/resume.component';
|
import { ResumeComponent } from './pages/resume/resume.component';
|
||||||
import { VisibilityComponent } from './pages/visibility/visibility.component';
|
import { VisibilityComponent } from './pages/visibility/visibility.component';
|
||||||
import { ChoicesListComponent } from './pages/voting/choices-list/choices-list.component';
|
import { ChoicesListComponent } from './pages/voting/choices-list/choices-list.component';
|
||||||
@ -47,7 +47,7 @@ import { VotingGraphComponent } from './pages/voting/voting-graph/voting-graph.c
|
|||||||
import { VotingNavigationComponent } from './pages/voting/voting-navigation/voting-navigation.component';
|
import { VotingNavigationComponent } from './pages/voting/voting-navigation/voting-navigation.component';
|
||||||
import { VotingSummaryComponent } from './pages/voting/voting-summary/voting-summary.component';
|
import { VotingSummaryComponent } from './pages/voting/voting-summary/voting-summary.component';
|
||||||
import { VotingComponent } from './pages/voting/voting.component';
|
import { VotingComponent } from './pages/voting/voting.component';
|
||||||
import { PollGraphicComponent } from './poll-graphic/poll-graphic.component';
|
import { PollGraphicComponent } from './pages/poll/poll-graphic/poll-graphic.component';
|
||||||
import { ConfigService } from './services/config.service';
|
import { ConfigService } from './services/config.service';
|
||||||
import { CopyTextComponent } from './ui/copy-text/copy-text.component';
|
import { CopyTextComponent } from './ui/copy-text/copy-text.component';
|
||||||
import { ResettableInputDirective } from './ui/directives/resettable-input.directive';
|
import { ResettableInputDirective } from './ui/directives/resettable-input.directive';
|
||||||
@ -56,7 +56,7 @@ import { MasterHeadComponent } from './ui/navigation/master-head/master-head.com
|
|||||||
import { NavigationComponent } from './ui/navigation/navigation.component';
|
import { NavigationComponent } from './ui/navigation/navigation.component';
|
||||||
import { LanguageComponent } from './ui/selector/language/language.component';
|
import { LanguageComponent } from './ui/selector/language/language.component';
|
||||||
import { SelectorComponent } from './ui/selector/selector.component';
|
import { SelectorComponent } from './ui/selector/selector.component';
|
||||||
import { ThemeSelectorComponent } from './ui/theme-selector/theme-selector.component';
|
import { ThemeSelectorComponent } from './ui/selector/theme-selector/theme-selector.component';
|
||||||
|
|
||||||
export class MyMissingTranslationHandler implements MissingTranslationHandler {
|
export class MyMissingTranslationHandler implements MissingTranslationHandler {
|
||||||
handle(params: MissingTranslationHandlerParams) {
|
handle(params: MissingTranslationHandlerParams) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { AfterViewInit, ChangeDetectorRef, Component, Inject, OnChanges, OnInit } from '@angular/core';
|
import { AfterViewInit, ChangeDetectorRef, Component, Inject, OnChanges, OnInit } from '@angular/core';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../example/base-page/base.component';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../services/config.service';
|
||||||
|
|
||||||
import { DOCUMENT } from '@angular/common';
|
import { DOCUMENT } from '@angular/common';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../example/base-page/base.component';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../services/config.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { ChangeDetectorRef, Component, Inject, OnInit } from '@angular/core';
|
import { ChangeDetectorRef, Component, Inject, OnInit } from '@angular/core';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../services/config.service';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../example/base-page/base.component';
|
||||||
import { DOCUMENT } from '@angular/common';
|
import { DOCUMENT } from '@angular/common';
|
||||||
import { MessageService } from 'primeng/api';
|
import { MessageService } from 'primeng/api';
|
||||||
import { otherDefaultDates } from '../../config/defaultConfigs';
|
import { otherDefaultDates } from '../../config/defaultConfigs';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../example/base-page/base.component';
|
||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../services/config.service';
|
||||||
import { MessageService } from 'primeng/api';
|
import { MessageService } from 'primeng/api';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../../services/config.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'framadate-base-page',
|
selector: 'framadate-base-page',
|
@ -1,6 +1,6 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../base-page/base.component';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../../services/config.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'framadate-page-kind',
|
selector: 'framadate-page-kind',
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../../services/config.service';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../base-page/base.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
@ -1,6 +1,6 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../services/config.service';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../example/base-page/base.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'framadate-home',
|
selector: 'framadate-home',
|
||||||
@ -9,6 +9,7 @@ import { BaseComponent } from '../base-page/base.component';
|
|||||||
})
|
})
|
||||||
export class HomeComponent extends BaseComponent implements OnInit {
|
export class HomeComponent extends BaseComponent implements OnInit {
|
||||||
nextStep = '/step/answers';
|
nextStep = '/step/answers';
|
||||||
|
|
||||||
constructor(public config: ConfigService) {
|
constructor(public config: ConfigService) {
|
||||||
super(config);
|
super(config);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../example/base-page/base.component';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../services/config.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -1 +0,0 @@
|
|||||||
@import '../../../assets/scss/variables';
|
|
@ -0,0 +1 @@
|
|||||||
|
@import '../../../../assets/scss/variables';
|
@ -1,10 +1,10 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../../example/base-page/base.component';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../../services/config.service';
|
||||||
import { mockComments } from '../../mocks/mock-comments';
|
import { mockComments } from '../../../mocks/mock-comments';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { environment } from '../../../environments/environment';
|
import { environment } from '../../../../environments/environment';
|
||||||
import { mockPoll3 } from '../../mocks/mock-poll3';
|
import { mockPoll3 } from '../../../mocks/mock-poll3';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'framadate-poll-display',
|
selector: 'framadate-poll-display',
|
@ -1,9 +1,9 @@
|
|||||||
import { Component, Inject, OnInit } from '@angular/core';
|
import { Component, Inject, OnInit } from '@angular/core';
|
||||||
import { Chart } from 'chart.js';
|
import { Chart } from 'chart.js';
|
||||||
import { DOCUMENT } from '@angular/common';
|
import { DOCUMENT } from '@angular/common';
|
||||||
import { mockGraphConfig } from '../mocks/mock-graph';
|
import { mockGraphConfig } from '../../../mocks/mock-graph';
|
||||||
import { ConfigService } from '../services/config.service';
|
import { ConfigService } from '../../../services/config.service';
|
||||||
import { mockPoll3 } from '../mocks/mock-poll3';
|
import { mockPoll3 } from '../../../mocks/mock-poll3';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'framadate-poll-graphic',
|
selector: 'framadate-poll-graphic',
|
@ -1,5 +1,5 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../example/base-page/base.component';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../services/config.service';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { BaseComponent } from '../base-page/base.component';
|
import { BaseComponent } from '../example/base-page/base.component';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../services/config.service';
|
||||||
import { environment } from '../../../environments/environment';
|
import { environment } from '../../../environments/environment';
|
||||||
import { PollUtilities } from '../../config/PollUtilities';
|
import { PollUtilities } from '../../config/PollUtilities';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { BaseComponent } from '../../base-page/base.component';
|
import { BaseComponent } from '../../example/base-page/base.component';
|
||||||
import { ConfigService } from '../../../services/config.service';
|
import { ConfigService } from '../../../services/config.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
31
src/app/shared/enums/backend-api.enum.ts
Normal file
31
src/app/shared/enums/backend-api.enum.ts
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
export enum BackendApiEnum {
|
||||||
|
new_poll = '/api/v1/poll/',
|
||||||
|
api_update_poll = '/api/v1/poll/{id}/{token}',
|
||||||
|
api_new_vote_stack = '/api/v1/vote-stack/{id}/token/{modifierToken}',
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* -------------------------- -------- -------- ------ ------------------------------------------------
|
||||||
|
Name Method Scheme Host Path
|
||||||
|
-------------------------- -------- -------- ------ ------------------------------------------------
|
||||||
|
_twig_error_test ANY ANY ANY /_error/{code}.{_format}
|
||||||
|
api_get_poll_comment GET ANY ANY /api/v1/poll/{id}/comments
|
||||||
|
api_new_comment POST ANY ANY /api/v1/poll/{id}/comment
|
||||||
|
api_poll_comments_delete DELETE ANY ANY /api/v1/poll/{id}/comments
|
||||||
|
api_send_user_polls GET ANY ANY /api/v1/send-polls-to-user/{email}
|
||||||
|
homepageget_default GET ANY ANY /
|
||||||
|
api_get_all_polls GET ANY ANY /api/v1/poll/
|
||||||
|
api_get_poll GET ANY ANY /api/v1/poll/{id}
|
||||||
|
api_update_poll PUT ANY ANY /api/v1/poll/{id}/{token}
|
||||||
|
api_new_poll POST ANY ANY /api/v1/poll/
|
||||||
|
api_test-mail-poll GET ANY ANY /api/v1/poll/mail/test-mail-poll/{emailChoice}
|
||||||
|
api_poll_delete DELETE ANY ANY /api/v1/poll/{id}
|
||||||
|
api_clean_expired_polls GET ANY ANY /api/v1/poll/clean-polls
|
||||||
|
api_check_slug_is_unique GET ANY ANY /api/v1/poll/admin/{token}
|
||||||
|
api_new_vote_stack POST ANY ANY /api/v1/poll/{id}/vote
|
||||||
|
api_update_vote_stack PATCH ANY ANY /api/v1/vote-stack/{id}/token/{modifierToken}
|
||||||
|
api_poll_votes_delete DELETE ANY ANY /api/v1/poll/{id}/votes/{accessToken}
|
||||||
|
app.swagger GET ANY ANY /api/doc.json
|
||||||
|
-------------------------- -------- -------- ------ ------------------------------------------------
|
||||||
|
*/
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ConfigService } from '../services/config.service';
|
import { ConfigService } from '../../services/config.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'framadate-debugger',
|
selector: 'framadate-debugger',
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, Input, OnInit } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
import { BaseComponent } from '../../pages/base-page/base.component';
|
import { BaseComponent } from '../../pages/example/base-page/base.component';
|
||||||
|
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../services/config.service';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ConfigService } from '../../services/config.service';
|
import { ConfigService } from '../../../services/config.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'framadate-theme-selector',
|
selector: 'framadate-theme-selector',
|
Loading…
Reference in New Issue
Block a user