diff --git a/src/app/features/old-stuff/config/PollConfig.ts b/mocks/old-stuff/config/PollConfig.ts similarity index 97% rename from src/app/features/old-stuff/config/PollConfig.ts rename to mocks/old-stuff/config/PollConfig.ts index 483b5539..b45b3573 100644 --- a/src/app/features/old-stuff/config/PollConfig.ts +++ b/mocks/old-stuff/config/PollConfig.ts @@ -1,7 +1,7 @@ /** * une option de date dans les sondages spéciaux */ -import { environment } from '../../../../environments/environment'; +import { environment } from '../../../src/environments/environment'; import { DateChoice, defaultAnswers, otherDefaultDates, PollAnswer } from './defaultConfigs'; export interface DateOption { diff --git a/src/app/features/old-stuff/config/defaultConfigs.ts b/mocks/old-stuff/config/defaultConfigs.ts similarity index 100% rename from src/app/features/old-stuff/config/defaultConfigs.ts rename to mocks/old-stuff/config/defaultConfigs.ts diff --git a/src/app/features/old-stuff/custom-lib/date-value-accessor/date-value-accessor.metadata.json b/mocks/old-stuff/custom-lib/date-value-accessor/date-value-accessor.metadata.json similarity index 100% rename from src/app/features/old-stuff/custom-lib/date-value-accessor/date-value-accessor.metadata.json rename to mocks/old-stuff/custom-lib/date-value-accessor/date-value-accessor.metadata.json diff --git a/src/app/features/old-stuff/custom-lib/date-value-accessor/date-value-accessor.ts b/mocks/old-stuff/custom-lib/date-value-accessor/date-value-accessor.ts similarity index 100% rename from src/app/features/old-stuff/custom-lib/date-value-accessor/date-value-accessor.ts rename to mocks/old-stuff/custom-lib/date-value-accessor/date-value-accessor.ts diff --git a/src/app/features/old-stuff/custom-lib/date-value-accessor/index.metadata.json b/mocks/old-stuff/custom-lib/date-value-accessor/index.metadata.json similarity index 100% rename from src/app/features/old-stuff/custom-lib/date-value-accessor/index.metadata.json rename to mocks/old-stuff/custom-lib/date-value-accessor/index.metadata.json diff --git a/src/app/features/old-stuff/custom-lib/date-value-accessor/index.ts b/mocks/old-stuff/custom-lib/date-value-accessor/index.ts similarity index 100% rename from src/app/features/old-stuff/custom-lib/date-value-accessor/index.ts rename to mocks/old-stuff/custom-lib/date-value-accessor/index.ts diff --git a/src/app/features/old-stuff/custom-lib/date-value-accessor/module.metadata.json b/mocks/old-stuff/custom-lib/date-value-accessor/module.metadata.json similarity index 100% rename from src/app/features/old-stuff/custom-lib/date-value-accessor/module.metadata.json rename to mocks/old-stuff/custom-lib/date-value-accessor/module.metadata.json diff --git a/src/app/features/old-stuff/custom-lib/date-value-accessor/module.ts b/mocks/old-stuff/custom-lib/date-value-accessor/module.ts similarity index 100% rename from src/app/features/old-stuff/custom-lib/date-value-accessor/module.ts rename to mocks/old-stuff/custom-lib/date-value-accessor/module.ts diff --git a/src/app/features/old-stuff/mocks/choice.ts b/mocks/old-stuff/mocks/choice.ts similarity index 100% rename from src/app/features/old-stuff/mocks/choice.ts rename to mocks/old-stuff/mocks/choice.ts diff --git a/src/app/features/old-stuff/mocks/comment-same-text-error.json b/mocks/old-stuff/mocks/comment-same-text-error.json similarity index 100% rename from src/app/features/old-stuff/mocks/comment-same-text-error.json rename to mocks/old-stuff/mocks/comment-same-text-error.json diff --git a/src/app/features/old-stuff/mocks/comment-too-fast-error.json b/mocks/old-stuff/mocks/comment-too-fast-error.json similarity index 100% rename from src/app/features/old-stuff/mocks/comment-too-fast-error.json rename to mocks/old-stuff/mocks/comment-too-fast-error.json diff --git a/src/app/features/old-stuff/mocks/config-poll-dessins-animes.json b/mocks/old-stuff/mocks/config-poll-dessins-animes.json similarity index 100% rename from src/app/features/old-stuff/mocks/config-poll-dessins-animes.json rename to mocks/old-stuff/mocks/config-poll-dessins-animes.json diff --git a/src/app/features/old-stuff/mocks/created-comment.json b/mocks/old-stuff/mocks/created-comment.json similarity index 100% rename from src/app/features/old-stuff/mocks/created-comment.json rename to mocks/old-stuff/mocks/created-comment.json diff --git a/src/app/features/old-stuff/mocks/mock-comments.ts b/mocks/old-stuff/mocks/mock-comments.ts similarity index 100% rename from src/app/features/old-stuff/mocks/mock-comments.ts rename to mocks/old-stuff/mocks/mock-comments.ts diff --git a/src/app/features/old-stuff/mocks/mock-graph.ts b/mocks/old-stuff/mocks/mock-graph.ts similarity index 100% rename from src/app/features/old-stuff/mocks/mock-graph.ts rename to mocks/old-stuff/mocks/mock-graph.ts diff --git a/src/app/features/old-stuff/mocks/mock-poll3.ts b/mocks/old-stuff/mocks/mock-poll3.ts similarity index 100% rename from src/app/features/old-stuff/mocks/mock-poll3.ts rename to mocks/old-stuff/mocks/mock-poll3.ts diff --git a/src/app/features/old-stuff/mocks/mock-success-vote.ts b/mocks/old-stuff/mocks/mock-success-vote.ts similarity index 100% rename from src/app/features/old-stuff/mocks/mock-success-vote.ts rename to mocks/old-stuff/mocks/mock-success-vote.ts diff --git a/src/app/features/old-stuff/mocks/mockmypolls.ts b/mocks/old-stuff/mocks/mockmypolls.ts similarity index 100% rename from src/app/features/old-stuff/mocks/mockmypolls.ts rename to mocks/old-stuff/mocks/mockmypolls.ts diff --git a/src/app/features/old-stuff/mocks/votestack-success.json b/mocks/old-stuff/mocks/votestack-success.json similarity index 100% rename from src/app/features/old-stuff/mocks/votestack-success.json rename to mocks/old-stuff/mocks/votestack-success.json diff --git a/src/app/features/old-stuff/old-stuff-routing.module.ts b/mocks/old-stuff/old-stuff-routing.module.ts similarity index 100% rename from src/app/features/old-stuff/old-stuff-routing.module.ts rename to mocks/old-stuff/old-stuff-routing.module.ts diff --git a/src/app/features/old-stuff/old-stuff.module.ts b/mocks/old-stuff/old-stuff.module.ts similarity index 98% rename from src/app/features/old-stuff/old-stuff.module.ts rename to mocks/old-stuff/old-stuff.module.ts index 3dea8e28..c4502415 100644 --- a/src/app/features/old-stuff/old-stuff.module.ts +++ b/mocks/old-stuff/old-stuff.module.ts @@ -3,7 +3,7 @@ import { NgModule } from '@angular/core'; import { TranslateModule } from '@ngx-translate/core'; import { ConfirmationService, DialogModule, MessageService } from 'primeng'; -import { SharedModule } from '../../shared/shared.module'; +import { SharedModule } from '../../src/app/shared/shared.module'; import { DateValueAccessorModule } from './custom-lib/date-value-accessor'; import { OldStuffRoutingModule } from './old-stuff-routing.module'; import { AdminComponent } from './pages/admin/admin.component'; diff --git a/src/app/features/old-stuff/pages/admin/admin.component.html b/mocks/old-stuff/pages/admin/admin.component.html similarity index 100% rename from src/app/features/old-stuff/pages/admin/admin.component.html rename to mocks/old-stuff/pages/admin/admin.component.html diff --git a/src/app/features/old-stuff/pages/admin/admin.component.scss b/mocks/old-stuff/pages/admin/admin.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/admin/admin.component.scss rename to mocks/old-stuff/pages/admin/admin.component.scss diff --git a/src/app/features/old-stuff/pages/admin/admin.component.spec.ts b/mocks/old-stuff/pages/admin/admin.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/admin/admin.component.spec.ts rename to mocks/old-stuff/pages/admin/admin.component.spec.ts diff --git a/src/app/features/old-stuff/pages/admin/admin.component.ts b/mocks/old-stuff/pages/admin/admin.component.ts similarity index 91% rename from src/app/features/old-stuff/pages/admin/admin.component.ts rename to mocks/old-stuff/pages/admin/admin.component.ts index 370973d2..ba67f433 100644 --- a/src/app/features/old-stuff/pages/admin/admin.component.ts +++ b/mocks/old-stuff/pages/admin/admin.component.ts @@ -2,8 +2,8 @@ import { Component, OnInit } from '@angular/core'; import { ConfigService } from '../../services/config.service'; import { ActivatedRoute, Router } from '@angular/router'; import { HttpClient } from '@angular/common/http'; -import { PollUtilities } from '../../config/PollUtilities'; -import { environment } from '../../../../../environments/environment'; +import { PollUtilities } from '../../../../src/app/core/services/PollUtilities'; +import { environment } from '../../../../src/environments/environment'; @Component({ selector: 'app-admin', diff --git a/src/app/features/old-stuff/pages/answers/answers.component.html b/mocks/old-stuff/pages/answers/answers.component.html similarity index 100% rename from src/app/features/old-stuff/pages/answers/answers.component.html rename to mocks/old-stuff/pages/answers/answers.component.html diff --git a/src/app/features/old-stuff/pages/answers/answers.component.scss b/mocks/old-stuff/pages/answers/answers.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/answers/answers.component.scss rename to mocks/old-stuff/pages/answers/answers.component.scss diff --git a/src/app/features/old-stuff/pages/answers/answers.component.spec.ts b/mocks/old-stuff/pages/answers/answers.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/answers/answers.component.spec.ts rename to mocks/old-stuff/pages/answers/answers.component.spec.ts diff --git a/src/app/features/old-stuff/pages/answers/answers.component.ts b/mocks/old-stuff/pages/answers/answers.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/answers/answers.component.ts rename to mocks/old-stuff/pages/answers/answers.component.ts diff --git a/src/app/features/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.html b/mocks/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.html similarity index 100% rename from src/app/features/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.html rename to mocks/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.html diff --git a/src/app/features/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.scss b/mocks/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.scss rename to mocks/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.scss diff --git a/src/app/features/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.spec.ts b/mocks/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.spec.ts rename to mocks/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.spec.ts diff --git a/src/app/features/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.ts b/mocks/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.ts rename to mocks/old-stuff/pages/create-or-retrieve/create-or-retrieve.component.ts diff --git a/src/app/features/old-stuff/pages/dates/dates.component.html b/mocks/old-stuff/pages/dates/dates.component.html similarity index 100% rename from src/app/features/old-stuff/pages/dates/dates.component.html rename to mocks/old-stuff/pages/dates/dates.component.html diff --git a/src/app/features/old-stuff/pages/dates/dates.component.scss b/mocks/old-stuff/pages/dates/dates.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/dates/dates.component.scss rename to mocks/old-stuff/pages/dates/dates.component.scss diff --git a/src/app/features/old-stuff/pages/dates/dates.component.spec.ts b/mocks/old-stuff/pages/dates/dates.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/dates/dates.component.spec.ts rename to mocks/old-stuff/pages/dates/dates.component.spec.ts diff --git a/src/app/features/old-stuff/pages/dates/dates.component.ts b/mocks/old-stuff/pages/dates/dates.component.ts similarity index 95% rename from src/app/features/old-stuff/pages/dates/dates.component.ts rename to mocks/old-stuff/pages/dates/dates.component.ts index 1caed356..f78a93d9 100644 --- a/src/app/features/old-stuff/pages/dates/dates.component.ts +++ b/mocks/old-stuff/pages/dates/dates.component.ts @@ -1,8 +1,8 @@ import { DOCUMENT } from '@angular/common'; import { ChangeDetectorRef, Component, Inject, OnInit } from '@angular/core'; -import { ToastService } from '../../../../core/services/toast.service'; -import { DateUtilities } from '../../config/DateUtilities'; +import { ToastService } from '../../../../src/app/core/services/toast.service'; +import { DateUtilities } from '../../../../src/app/core/services/DateUtilities'; import { otherDefaultDates } from '../../config/defaultConfigs'; import { ConfigService } from '../../services/config.service'; import { BaseComponent } from '../example/base-page/base.component'; diff --git a/src/app/features/old-stuff/pages/end-confirmation/end-confirmation.component.html b/mocks/old-stuff/pages/end-confirmation/end-confirmation.component.html similarity index 100% rename from src/app/features/old-stuff/pages/end-confirmation/end-confirmation.component.html rename to mocks/old-stuff/pages/end-confirmation/end-confirmation.component.html diff --git a/src/app/features/old-stuff/pages/end-confirmation/end-confirmation.component.scss b/mocks/old-stuff/pages/end-confirmation/end-confirmation.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/end-confirmation/end-confirmation.component.scss rename to mocks/old-stuff/pages/end-confirmation/end-confirmation.component.scss diff --git a/src/app/features/old-stuff/pages/end-confirmation/end-confirmation.component.spec.ts b/mocks/old-stuff/pages/end-confirmation/end-confirmation.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/end-confirmation/end-confirmation.component.spec.ts rename to mocks/old-stuff/pages/end-confirmation/end-confirmation.component.spec.ts diff --git a/src/app/features/old-stuff/pages/end-confirmation/end-confirmation.component.ts b/mocks/old-stuff/pages/end-confirmation/end-confirmation.component.ts similarity index 90% rename from src/app/features/old-stuff/pages/end-confirmation/end-confirmation.component.ts rename to mocks/old-stuff/pages/end-confirmation/end-confirmation.component.ts index ac4eab66..cba66989 100644 --- a/src/app/features/old-stuff/pages/end-confirmation/end-confirmation.component.ts +++ b/mocks/old-stuff/pages/end-confirmation/end-confirmation.component.ts @@ -1,7 +1,7 @@ import { HttpClient } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; -import { ToastService } from '../../../../core/services/toast.service'; +import { ToastService } from '../../../../src/app/core/services/toast.service'; import { ConfigService } from '../../services/config.service'; import { BaseComponent } from '../example/base-page/base.component'; diff --git a/src/app/features/old-stuff/pages/example/base-page/base.component.html b/mocks/old-stuff/pages/example/base-page/base.component.html similarity index 100% rename from src/app/features/old-stuff/pages/example/base-page/base.component.html rename to mocks/old-stuff/pages/example/base-page/base.component.html diff --git a/src/app/features/old-stuff/pages/example/base-page/base.component.scss b/mocks/old-stuff/pages/example/base-page/base.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/example/base-page/base.component.scss rename to mocks/old-stuff/pages/example/base-page/base.component.scss diff --git a/src/app/features/old-stuff/pages/example/base-page/base.component.spec.ts b/mocks/old-stuff/pages/example/base-page/base.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/example/base-page/base.component.spec.ts rename to mocks/old-stuff/pages/example/base-page/base.component.spec.ts diff --git a/src/app/features/old-stuff/pages/example/base-page/base.component.ts b/mocks/old-stuff/pages/example/base-page/base.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/example/base-page/base.component.ts rename to mocks/old-stuff/pages/example/base-page/base.component.ts diff --git a/src/app/features/old-stuff/pages/example/kind/kind.component.html b/mocks/old-stuff/pages/example/kind/kind.component.html similarity index 98% rename from src/app/features/old-stuff/pages/example/kind/kind.component.html rename to mocks/old-stuff/pages/example/kind/kind.component.html index 10c0467e..0cf28006 100644 --- a/src/app/features/old-stuff/pages/example/kind/kind.component.html +++ b/mocks/old-stuff/pages/example/kind/kind.component.html @@ -47,7 +47,7 @@
- + primary - outline - default diff --git a/src/app/features/old-stuff/pages/example/kind/kind.component.scss b/mocks/old-stuff/pages/example/kind/kind.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/example/kind/kind.component.scss rename to mocks/old-stuff/pages/example/kind/kind.component.scss diff --git a/src/app/features/old-stuff/pages/example/kind/kind.component.spec.ts b/mocks/old-stuff/pages/example/kind/kind.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/example/kind/kind.component.spec.ts rename to mocks/old-stuff/pages/example/kind/kind.component.spec.ts diff --git a/src/app/features/old-stuff/pages/example/kind/kind.component.ts b/mocks/old-stuff/pages/example/kind/kind.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/example/kind/kind.component.ts rename to mocks/old-stuff/pages/example/kind/kind.component.ts diff --git a/src/app/features/old-stuff/pages/example/pictures/pictures.component.html b/mocks/old-stuff/pages/example/pictures/pictures.component.html similarity index 100% rename from src/app/features/old-stuff/pages/example/pictures/pictures.component.html rename to mocks/old-stuff/pages/example/pictures/pictures.component.html diff --git a/src/app/features/old-stuff/pages/example/pictures/pictures.component.scss b/mocks/old-stuff/pages/example/pictures/pictures.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/example/pictures/pictures.component.scss rename to mocks/old-stuff/pages/example/pictures/pictures.component.scss diff --git a/src/app/features/old-stuff/pages/example/pictures/pictures.component.spec.ts b/mocks/old-stuff/pages/example/pictures/pictures.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/example/pictures/pictures.component.spec.ts rename to mocks/old-stuff/pages/example/pictures/pictures.component.spec.ts diff --git a/src/app/features/old-stuff/pages/example/pictures/pictures.component.ts b/mocks/old-stuff/pages/example/pictures/pictures.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/example/pictures/pictures.component.ts rename to mocks/old-stuff/pages/example/pictures/pictures.component.ts diff --git a/src/app/features/old-stuff/pages/home/home.component.html b/mocks/old-stuff/pages/home/home.component.html similarity index 100% rename from src/app/features/old-stuff/pages/home/home.component.html rename to mocks/old-stuff/pages/home/home.component.html diff --git a/src/app/features/old-stuff/pages/home/home.component.scss b/mocks/old-stuff/pages/home/home.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/home/home.component.scss rename to mocks/old-stuff/pages/home/home.component.scss diff --git a/src/app/features/old-stuff/pages/home/home.component.spec.ts b/mocks/old-stuff/pages/home/home.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/home/home.component.spec.ts rename to mocks/old-stuff/pages/home/home.component.spec.ts diff --git a/src/app/features/old-stuff/pages/home/home.component.ts b/mocks/old-stuff/pages/home/home.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/home/home.component.ts rename to mocks/old-stuff/pages/home/home.component.ts diff --git a/src/app/features/old-stuff/pages/password/password.component.html b/mocks/old-stuff/pages/password/password.component.html similarity index 100% rename from src/app/features/old-stuff/pages/password/password.component.html rename to mocks/old-stuff/pages/password/password.component.html diff --git a/src/app/features/old-stuff/pages/password/password.component.scss b/mocks/old-stuff/pages/password/password.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/password/password.component.scss rename to mocks/old-stuff/pages/password/password.component.scss diff --git a/src/app/features/old-stuff/pages/password/password.component.spec.ts b/mocks/old-stuff/pages/password/password.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/password/password.component.spec.ts rename to mocks/old-stuff/pages/password/password.component.spec.ts diff --git a/src/app/features/old-stuff/pages/password/password.component.ts b/mocks/old-stuff/pages/password/password.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/password/password.component.ts rename to mocks/old-stuff/pages/password/password.component.ts diff --git a/src/app/features/old-stuff/pages/poll/poll-display/poll-display.component.html b/mocks/old-stuff/pages/poll/poll-display/poll-display.component.html similarity index 100% rename from src/app/features/old-stuff/pages/poll/poll-display/poll-display.component.html rename to mocks/old-stuff/pages/poll/poll-display/poll-display.component.html diff --git a/mocks/old-stuff/pages/poll/poll-display/poll-display.component.scss b/mocks/old-stuff/pages/poll/poll-display/poll-display.component.scss new file mode 100644 index 00000000..97075968 --- /dev/null +++ b/mocks/old-stuff/pages/poll/poll-display/poll-display.component.scss @@ -0,0 +1 @@ +@import '../../../../../src/styles/variables'; diff --git a/src/app/features/old-stuff/pages/poll/poll-display/poll-display.component.spec.ts b/mocks/old-stuff/pages/poll/poll-display/poll-display.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/poll/poll-display/poll-display.component.spec.ts rename to mocks/old-stuff/pages/poll/poll-display/poll-display.component.spec.ts diff --git a/src/app/features/old-stuff/pages/poll/poll-display/poll-display.component.ts b/mocks/old-stuff/pages/poll/poll-display/poll-display.component.ts similarity index 96% rename from src/app/features/old-stuff/pages/poll/poll-display/poll-display.component.ts rename to mocks/old-stuff/pages/poll/poll-display/poll-display.component.ts index 9489db1a..768b8686 100644 --- a/src/app/features/old-stuff/pages/poll/poll-display/poll-display.component.ts +++ b/mocks/old-stuff/pages/poll/poll-display/poll-display.component.ts @@ -3,7 +3,7 @@ import { BaseComponent } from '../../example/base-page/base.component'; import { ConfigService } from '../../../services/config.service'; import { mockComments } from '../../../mocks/mock-comments'; import { ActivatedRoute, Router } from '@angular/router'; -import { environment } from '../../../../../../environments/environment'; +import { environment } from '../../../../../src/environments/environment'; import { mockPoll3 } from '../../../mocks/mock-poll3'; @Component({ diff --git a/src/app/features/old-stuff/pages/poll/poll-graphic/poll-graphic.component.html b/mocks/old-stuff/pages/poll/poll-graphic/poll-graphic.component.html similarity index 100% rename from src/app/features/old-stuff/pages/poll/poll-graphic/poll-graphic.component.html rename to mocks/old-stuff/pages/poll/poll-graphic/poll-graphic.component.html diff --git a/src/app/features/old-stuff/pages/poll/poll-graphic/poll-graphic.component.scss b/mocks/old-stuff/pages/poll/poll-graphic/poll-graphic.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/poll/poll-graphic/poll-graphic.component.scss rename to mocks/old-stuff/pages/poll/poll-graphic/poll-graphic.component.scss diff --git a/src/app/features/old-stuff/pages/poll/poll-graphic/poll-graphic.component.spec.ts b/mocks/old-stuff/pages/poll/poll-graphic/poll-graphic.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/poll/poll-graphic/poll-graphic.component.spec.ts rename to mocks/old-stuff/pages/poll/poll-graphic/poll-graphic.component.spec.ts diff --git a/src/app/features/old-stuff/pages/poll/poll-graphic/poll-graphic.component.ts b/mocks/old-stuff/pages/poll/poll-graphic/poll-graphic.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/poll/poll-graphic/poll-graphic.component.ts rename to mocks/old-stuff/pages/poll/poll-graphic/poll-graphic.component.ts diff --git a/src/app/features/old-stuff/pages/resume/resume.component.html b/mocks/old-stuff/pages/resume/resume.component.html similarity index 100% rename from src/app/features/old-stuff/pages/resume/resume.component.html rename to mocks/old-stuff/pages/resume/resume.component.html diff --git a/src/app/features/old-stuff/pages/resume/resume.component.scss b/mocks/old-stuff/pages/resume/resume.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/resume/resume.component.scss rename to mocks/old-stuff/pages/resume/resume.component.scss diff --git a/src/app/features/old-stuff/pages/resume/resume.component.spec.ts b/mocks/old-stuff/pages/resume/resume.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/resume/resume.component.spec.ts rename to mocks/old-stuff/pages/resume/resume.component.spec.ts diff --git a/src/app/features/old-stuff/pages/resume/resume.component.ts b/mocks/old-stuff/pages/resume/resume.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/resume/resume.component.ts rename to mocks/old-stuff/pages/resume/resume.component.ts diff --git a/src/app/features/old-stuff/pages/visibility/visibility.component.html b/mocks/old-stuff/pages/visibility/visibility.component.html similarity index 100% rename from src/app/features/old-stuff/pages/visibility/visibility.component.html rename to mocks/old-stuff/pages/visibility/visibility.component.html diff --git a/src/app/features/old-stuff/pages/visibility/visibility.component.scss b/mocks/old-stuff/pages/visibility/visibility.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/visibility/visibility.component.scss rename to mocks/old-stuff/pages/visibility/visibility.component.scss diff --git a/src/app/features/old-stuff/pages/visibility/visibility.component.spec.ts b/mocks/old-stuff/pages/visibility/visibility.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/visibility/visibility.component.spec.ts rename to mocks/old-stuff/pages/visibility/visibility.component.spec.ts diff --git a/src/app/features/old-stuff/pages/visibility/visibility.component.ts b/mocks/old-stuff/pages/visibility/visibility.component.ts similarity index 85% rename from src/app/features/old-stuff/pages/visibility/visibility.component.ts rename to mocks/old-stuff/pages/visibility/visibility.component.ts index e29a8fb1..63f581f4 100644 --- a/src/app/features/old-stuff/pages/visibility/visibility.component.ts +++ b/mocks/old-stuff/pages/visibility/visibility.component.ts @@ -1,8 +1,8 @@ import { Location } from '@angular/common'; import { Component, OnInit } from '@angular/core'; -import { environment } from '../../../../../environments/environment'; -import { PollUtilities } from '../../config/PollUtilities'; +import { environment } from '../../../../src/environments/environment'; +import { PollUtilities } from '../../../../src/app/core/services/PollUtilities'; import { ConfigService } from '../../services/config.service'; import { BaseComponent } from '../example/base-page/base.component'; diff --git a/src/app/features/old-stuff/pages/voting/choices-list/choices-list.component.html b/mocks/old-stuff/pages/voting/choices-list/choices-list.component.html similarity index 100% rename from src/app/features/old-stuff/pages/voting/choices-list/choices-list.component.html rename to mocks/old-stuff/pages/voting/choices-list/choices-list.component.html diff --git a/src/app/features/old-stuff/pages/voting/choices-list/choices-list.component.scss b/mocks/old-stuff/pages/voting/choices-list/choices-list.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/voting/choices-list/choices-list.component.scss rename to mocks/old-stuff/pages/voting/choices-list/choices-list.component.scss diff --git a/src/app/features/old-stuff/pages/voting/choices-list/choices-list.component.spec.ts b/mocks/old-stuff/pages/voting/choices-list/choices-list.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/choices-list/choices-list.component.spec.ts rename to mocks/old-stuff/pages/voting/choices-list/choices-list.component.spec.ts diff --git a/src/app/features/old-stuff/pages/voting/choices-list/choices-list.component.ts b/mocks/old-stuff/pages/voting/choices-list/choices-list.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/choices-list/choices-list.component.ts rename to mocks/old-stuff/pages/voting/choices-list/choices-list.component.ts diff --git a/src/app/features/old-stuff/pages/voting/comments-list/comments-list.component.html b/mocks/old-stuff/pages/voting/comments-list/comments-list.component.html similarity index 100% rename from src/app/features/old-stuff/pages/voting/comments-list/comments-list.component.html rename to mocks/old-stuff/pages/voting/comments-list/comments-list.component.html diff --git a/src/app/features/old-stuff/pages/voting/comments-list/comments-list.component.scss b/mocks/old-stuff/pages/voting/comments-list/comments-list.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/voting/comments-list/comments-list.component.scss rename to mocks/old-stuff/pages/voting/comments-list/comments-list.component.scss diff --git a/src/app/features/old-stuff/pages/voting/comments-list/comments-list.component.spec.ts b/mocks/old-stuff/pages/voting/comments-list/comments-list.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/comments-list/comments-list.component.spec.ts rename to mocks/old-stuff/pages/voting/comments-list/comments-list.component.spec.ts diff --git a/src/app/features/old-stuff/pages/voting/comments-list/comments-list.component.ts b/mocks/old-stuff/pages/voting/comments-list/comments-list.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/comments-list/comments-list.component.ts rename to mocks/old-stuff/pages/voting/comments-list/comments-list.component.ts diff --git a/src/app/features/old-stuff/pages/voting/voting-choice/voting-choice.component.html b/mocks/old-stuff/pages/voting/voting-choice/voting-choice.component.html similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-choice/voting-choice.component.html rename to mocks/old-stuff/pages/voting/voting-choice/voting-choice.component.html diff --git a/src/app/features/old-stuff/pages/voting/voting-choice/voting-choice.component.scss b/mocks/old-stuff/pages/voting/voting-choice/voting-choice.component.scss similarity index 98% rename from src/app/features/old-stuff/pages/voting/voting-choice/voting-choice.component.scss rename to mocks/old-stuff/pages/voting/voting-choice/voting-choice.component.scss index 4b2f821e..c619c0b3 100644 --- a/src/app/features/old-stuff/pages/voting/voting-choice/voting-choice.component.scss +++ b/mocks/old-stuff/pages/voting/voting-choice/voting-choice.component.scss @@ -5,7 +5,7 @@ // -- IMPORTS // ---------------------------- -@import '../../../../../../styles/variables'; +@import '../../../../../src/styles/variables'; // -- VARIABLES // ---------------------------- diff --git a/src/app/features/old-stuff/pages/voting/voting-choice/voting-choice.component.spec.ts b/mocks/old-stuff/pages/voting/voting-choice/voting-choice.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-choice/voting-choice.component.spec.ts rename to mocks/old-stuff/pages/voting/voting-choice/voting-choice.component.spec.ts diff --git a/src/app/features/old-stuff/pages/voting/voting-choice/voting-choice.component.ts b/mocks/old-stuff/pages/voting/voting-choice/voting-choice.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-choice/voting-choice.component.ts rename to mocks/old-stuff/pages/voting/voting-choice/voting-choice.component.ts diff --git a/src/app/features/old-stuff/pages/voting/voting-comment/voting-comment.component.html b/mocks/old-stuff/pages/voting/voting-comment/voting-comment.component.html similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-comment/voting-comment.component.html rename to mocks/old-stuff/pages/voting/voting-comment/voting-comment.component.html diff --git a/src/app/features/old-stuff/pages/voting/voting-comment/voting-comment.component.scss b/mocks/old-stuff/pages/voting/voting-comment/voting-comment.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-comment/voting-comment.component.scss rename to mocks/old-stuff/pages/voting/voting-comment/voting-comment.component.scss diff --git a/src/app/features/old-stuff/pages/voting/voting-comment/voting-comment.component.spec.ts b/mocks/old-stuff/pages/voting/voting-comment/voting-comment.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-comment/voting-comment.component.spec.ts rename to mocks/old-stuff/pages/voting/voting-comment/voting-comment.component.spec.ts diff --git a/src/app/features/old-stuff/pages/voting/voting-comment/voting-comment.component.ts b/mocks/old-stuff/pages/voting/voting-comment/voting-comment.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-comment/voting-comment.component.ts rename to mocks/old-stuff/pages/voting/voting-comment/voting-comment.component.ts diff --git a/src/app/features/old-stuff/pages/voting/voting-graph/voting-graph.component.html b/mocks/old-stuff/pages/voting/voting-graph/voting-graph.component.html similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-graph/voting-graph.component.html rename to mocks/old-stuff/pages/voting/voting-graph/voting-graph.component.html diff --git a/src/app/features/old-stuff/pages/voting/voting-graph/voting-graph.component.scss b/mocks/old-stuff/pages/voting/voting-graph/voting-graph.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-graph/voting-graph.component.scss rename to mocks/old-stuff/pages/voting/voting-graph/voting-graph.component.scss diff --git a/src/app/features/old-stuff/pages/voting/voting-graph/voting-graph.component.spec.ts b/mocks/old-stuff/pages/voting/voting-graph/voting-graph.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-graph/voting-graph.component.spec.ts rename to mocks/old-stuff/pages/voting/voting-graph/voting-graph.component.spec.ts diff --git a/src/app/features/old-stuff/pages/voting/voting-graph/voting-graph.component.ts b/mocks/old-stuff/pages/voting/voting-graph/voting-graph.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-graph/voting-graph.component.ts rename to mocks/old-stuff/pages/voting/voting-graph/voting-graph.component.ts diff --git a/src/app/features/old-stuff/pages/voting/voting-navigation/voting-navigation.component.html b/mocks/old-stuff/pages/voting/voting-navigation/voting-navigation.component.html similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-navigation/voting-navigation.component.html rename to mocks/old-stuff/pages/voting/voting-navigation/voting-navigation.component.html diff --git a/src/app/features/old-stuff/pages/voting/voting-navigation/voting-navigation.component.scss b/mocks/old-stuff/pages/voting/voting-navigation/voting-navigation.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-navigation/voting-navigation.component.scss rename to mocks/old-stuff/pages/voting/voting-navigation/voting-navigation.component.scss diff --git a/src/app/features/old-stuff/pages/voting/voting-navigation/voting-navigation.component.spec.ts b/mocks/old-stuff/pages/voting/voting-navigation/voting-navigation.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-navigation/voting-navigation.component.spec.ts rename to mocks/old-stuff/pages/voting/voting-navigation/voting-navigation.component.spec.ts diff --git a/src/app/features/old-stuff/pages/voting/voting-navigation/voting-navigation.component.ts b/mocks/old-stuff/pages/voting/voting-navigation/voting-navigation.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-navigation/voting-navigation.component.ts rename to mocks/old-stuff/pages/voting/voting-navigation/voting-navigation.component.ts diff --git a/src/app/features/old-stuff/pages/voting/voting-summary/voting-summary.component.html b/mocks/old-stuff/pages/voting/voting-summary/voting-summary.component.html similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-summary/voting-summary.component.html rename to mocks/old-stuff/pages/voting/voting-summary/voting-summary.component.html diff --git a/src/app/features/old-stuff/pages/voting/voting-summary/voting-summary.component.scss b/mocks/old-stuff/pages/voting/voting-summary/voting-summary.component.scss similarity index 84% rename from src/app/features/old-stuff/pages/voting/voting-summary/voting-summary.component.scss rename to mocks/old-stuff/pages/voting/voting-summary/voting-summary.component.scss index df5b9f7c..8fc60aa0 100644 --- a/src/app/features/old-stuff/pages/voting/voting-summary/voting-summary.component.scss +++ b/mocks/old-stuff/pages/voting/voting-summary/voting-summary.component.scss @@ -1,4 +1,4 @@ -@import '../../../../../../styles/variables'; +@import '../../../../../src/styles/variables'; .person { font-weight: 700; diff --git a/src/app/features/old-stuff/pages/voting/voting-summary/voting-summary.component.spec.ts b/mocks/old-stuff/pages/voting/voting-summary/voting-summary.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-summary/voting-summary.component.spec.ts rename to mocks/old-stuff/pages/voting/voting-summary/voting-summary.component.spec.ts diff --git a/src/app/features/old-stuff/pages/voting/voting-summary/voting-summary.component.ts b/mocks/old-stuff/pages/voting/voting-summary/voting-summary.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting-summary/voting-summary.component.ts rename to mocks/old-stuff/pages/voting/voting-summary/voting-summary.component.ts diff --git a/src/app/features/old-stuff/pages/voting/voting.component.html b/mocks/old-stuff/pages/voting/voting.component.html similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting.component.html rename to mocks/old-stuff/pages/voting/voting.component.html diff --git a/src/app/features/old-stuff/pages/voting/voting.component.scss b/mocks/old-stuff/pages/voting/voting.component.scss similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting.component.scss rename to mocks/old-stuff/pages/voting/voting.component.scss diff --git a/src/app/features/old-stuff/pages/voting/voting.component.spec.ts b/mocks/old-stuff/pages/voting/voting.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting.component.spec.ts rename to mocks/old-stuff/pages/voting/voting.component.spec.ts diff --git a/src/app/features/old-stuff/pages/voting/voting.component.ts b/mocks/old-stuff/pages/voting/voting.component.ts similarity index 100% rename from src/app/features/old-stuff/pages/voting/voting.component.ts rename to mocks/old-stuff/pages/voting/voting.component.ts diff --git a/src/app/features/old-stuff/services/config.service.ts b/mocks/old-stuff/services/config.service.ts similarity index 99% rename from src/app/features/old-stuff/services/config.service.ts rename to mocks/old-stuff/services/config.service.ts index 50b10d55..9e1d6434 100644 --- a/src/app/features/old-stuff/services/config.service.ts +++ b/mocks/old-stuff/services/config.service.ts @@ -3,10 +3,10 @@ import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { ConfirmationService } from 'primeng/api'; -import { environment } from '../../../../environments/environment'; -import { ToastService } from '../../../core/services/toast.service'; +import { environment } from '../../../src/environments/environment'; +import { ToastService } from '../../../src/app/core/services/toast.service'; import { PollConfig } from '../config/PollConfig'; -import { PollUtilities } from '../config/PollUtilities'; +import { PollUtilities } from '../../../src/app/core/services/PollUtilities'; import { mockPoll3 } from '../mocks/mock-poll3'; import { mockSuccessVote } from '../mocks/mock-success-vote'; import { mockMyPolls } from '../mocks/mockmypolls'; diff --git a/src/app/features/old-stuff/services/progression.service.spec.ts b/mocks/old-stuff/services/progression.service.spec.ts similarity index 100% rename from src/app/features/old-stuff/services/progression.service.spec.ts rename to mocks/old-stuff/services/progression.service.spec.ts diff --git a/src/app/features/old-stuff/ui/copy-text/copy-text.component.html b/mocks/old-stuff/ui/copy-text/copy-text.component.html similarity index 100% rename from src/app/features/old-stuff/ui/copy-text/copy-text.component.html rename to mocks/old-stuff/ui/copy-text/copy-text.component.html diff --git a/src/app/features/old-stuff/ui/copy-text/copy-text.component.scss b/mocks/old-stuff/ui/copy-text/copy-text.component.scss similarity index 100% rename from src/app/features/old-stuff/ui/copy-text/copy-text.component.scss rename to mocks/old-stuff/ui/copy-text/copy-text.component.scss diff --git a/src/app/features/old-stuff/ui/copy-text/copy-text.component.spec.ts b/mocks/old-stuff/ui/copy-text/copy-text.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/ui/copy-text/copy-text.component.spec.ts rename to mocks/old-stuff/ui/copy-text/copy-text.component.spec.ts diff --git a/src/app/features/old-stuff/ui/copy-text/copy-text.component.ts b/mocks/old-stuff/ui/copy-text/copy-text.component.ts similarity index 88% rename from src/app/features/old-stuff/ui/copy-text/copy-text.component.ts rename to mocks/old-stuff/ui/copy-text/copy-text.component.ts index 31c295b9..c9029eb2 100644 --- a/src/app/features/old-stuff/ui/copy-text/copy-text.component.ts +++ b/mocks/old-stuff/ui/copy-text/copy-text.component.ts @@ -1,7 +1,7 @@ import { Component, Input, OnInit } from '@angular/core'; import { ClipboardService } from 'ngx-clipboard'; -import { ToastService } from '../../../../core/services/toast.service'; +import { ToastService } from '../../../../src/app/core/services/toast.service'; @Component({ selector: 'app-copy-text', diff --git a/src/app/features/old-stuff/ui/directives/resettable-input.directive.spec.ts b/mocks/old-stuff/ui/directives/resettable-input.directive.spec.ts similarity index 100% rename from src/app/features/old-stuff/ui/directives/resettable-input.directive.spec.ts rename to mocks/old-stuff/ui/directives/resettable-input.directive.spec.ts diff --git a/src/app/features/old-stuff/ui/directives/resettable-input.directive.ts b/mocks/old-stuff/ui/directives/resettable-input.directive.ts similarity index 100% rename from src/app/features/old-stuff/ui/directives/resettable-input.directive.ts rename to mocks/old-stuff/ui/directives/resettable-input.directive.ts diff --git a/src/app/features/old-stuff/ui/erasable-input/erasable-input.component.html b/mocks/old-stuff/ui/erasable-input/erasable-input.component.html similarity index 100% rename from src/app/features/old-stuff/ui/erasable-input/erasable-input.component.html rename to mocks/old-stuff/ui/erasable-input/erasable-input.component.html diff --git a/src/app/features/old-stuff/ui/erasable-input/erasable-input.component.scss b/mocks/old-stuff/ui/erasable-input/erasable-input.component.scss similarity index 100% rename from src/app/features/old-stuff/ui/erasable-input/erasable-input.component.scss rename to mocks/old-stuff/ui/erasable-input/erasable-input.component.scss diff --git a/src/app/features/old-stuff/ui/erasable-input/erasable-input.component.spec.ts b/mocks/old-stuff/ui/erasable-input/erasable-input.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/ui/erasable-input/erasable-input.component.spec.ts rename to mocks/old-stuff/ui/erasable-input/erasable-input.component.spec.ts diff --git a/src/app/features/old-stuff/ui/erasable-input/erasable-input.component.ts b/mocks/old-stuff/ui/erasable-input/erasable-input.component.ts similarity index 100% rename from src/app/features/old-stuff/ui/erasable-input/erasable-input.component.ts rename to mocks/old-stuff/ui/erasable-input/erasable-input.component.ts diff --git a/src/app/features/old-stuff/ui/two-links/two-links.component.html b/mocks/old-stuff/ui/two-links/two-links.component.html similarity index 100% rename from src/app/features/old-stuff/ui/two-links/two-links.component.html rename to mocks/old-stuff/ui/two-links/two-links.component.html diff --git a/src/app/features/old-stuff/ui/two-links/two-links.component.scss b/mocks/old-stuff/ui/two-links/two-links.component.scss similarity index 100% rename from src/app/features/old-stuff/ui/two-links/two-links.component.scss rename to mocks/old-stuff/ui/two-links/two-links.component.scss diff --git a/src/app/features/old-stuff/ui/two-links/two-links.component.spec.ts b/mocks/old-stuff/ui/two-links/two-links.component.spec.ts similarity index 100% rename from src/app/features/old-stuff/ui/two-links/two-links.component.spec.ts rename to mocks/old-stuff/ui/two-links/two-links.component.spec.ts diff --git a/src/app/features/old-stuff/ui/two-links/two-links.component.ts b/mocks/old-stuff/ui/two-links/two-links.component.ts similarity index 100% rename from src/app/features/old-stuff/ui/two-links/two-links.component.ts rename to mocks/old-stuff/ui/two-links/two-links.component.ts diff --git a/src/app/core/components/footer/footer.component.html b/src/app/core/components/footer/footer.component.html index a62e391f..fbf8ee53 100644 --- a/src/app/core/components/footer/footer.component.html +++ b/src/app/core/components/footer/footer.component.html @@ -26,34 +26,5 @@ canal Matrix

-
- Environnement de développement: voici des liens de démonstration issus des fixtures Doctrine de - date-poll-api. - - - - -
diff --git a/src/app/core/components/header/header.component.html b/src/app/core/components/header/header.component.html index 41034276..cb97f35a 100644 --- a/src/app/core/components/header/header.component.html +++ b/src/app/core/components/header/header.component.html @@ -46,4 +46,32 @@ menu mobile +
+ Environnement de développement: voici des liens de démonstration issus des fixtures Doctrine de date-poll-api. + + + + +
diff --git a/src/app/features/old-stuff/config/DateUtilities.ts b/src/app/core/services/DateUtilities.ts similarity index 100% rename from src/app/features/old-stuff/config/DateUtilities.ts rename to src/app/core/services/DateUtilities.ts diff --git a/src/app/features/old-stuff/config/PollUtilities.ts b/src/app/core/services/PollUtilities.ts similarity index 94% rename from src/app/features/old-stuff/config/PollUtilities.ts rename to src/app/core/services/PollUtilities.ts index 30db26cf..9e710b9e 100644 --- a/src/app/features/old-stuff/config/PollUtilities.ts +++ b/src/app/core/services/PollUtilities.ts @@ -1,7 +1,6 @@ import { HttpHeaders } from '@angular/common/http'; -import { PollConfig } from './PollConfig'; import { Injectable } from '@angular/core'; -import { Poll } from '../../../core/models/poll.model'; +import { Poll } from '../models/poll.model'; @Injectable({ providedIn: 'root', diff --git a/src/app/features/administration/form/date-select/date-select.component.ts b/src/app/features/administration/form/date-select/date-select.component.ts index 2208051f..e06eecdc 100644 --- a/src/app/features/administration/form/date-select/date-select.component.ts +++ b/src/app/features/administration/form/date-select/date-select.component.ts @@ -3,11 +3,16 @@ import { FormArray, FormBuilder, FormGroup, Validators } from '@angular/forms'; import { UuidService } from '../../../../core/services/uuid.service'; import { ToastService } from '../../../../core/services/toast.service'; import { PollService } from '../../../../core/services/poll.service'; -import { DateUtilities } from '../../../old-stuff/config/DateUtilities'; +import { DateUtilities } from '../../../../core/services/DateUtilities'; import { ApiService } from '../../../../core/services/api.service'; import { Router } from '@angular/router'; import { DOCUMENT } from '@angular/common'; -import { DateChoice, moreTimeOfDay, otherDefaultDates, TimeSlices } from '../../../old-stuff/config/defaultConfigs'; +import { + DateChoice, + moreTimeOfDay, + otherDefaultDates, + TimeSlices, +} from '../../../../../../mocks/old-stuff/config/defaultConfigs'; import { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop'; import { TranslateService } from '@ngx-translate/core'; diff --git a/src/app/features/consultation/consultation-routing.module.ts b/src/app/features/consultation/consultation-routing.module.ts index e09b8d72..36484ca2 100644 --- a/src/app/features/consultation/consultation-routing.module.ts +++ b/src/app/features/consultation/consultation-routing.module.ts @@ -5,7 +5,7 @@ import { ConsultationComponent } from './consultation.component'; const routes: Routes = [ { - path: '/', + path: '', component: ConsultationComponent, children: [{ path: '/:hash', component: ConsultationComponent }], }, diff --git a/src/app/features/consultation/consultation.component.ts b/src/app/features/consultation/consultation.component.ts index ff7fefdd..7a495ecf 100644 --- a/src/app/features/consultation/consultation.component.ts +++ b/src/app/features/consultation/consultation.component.ts @@ -5,7 +5,7 @@ import { Poll } from '../../core/models/poll.model'; import { ModalService } from '../../core/services/modal.service'; import { PollService } from '../../core/services/poll.service'; import { DateService } from '../../core/services/date.service'; -import { PollUtilities } from '../old-stuff/config/PollUtilities'; +import { PollUtilities } from '../../core/services/PollUtilities'; import { Comment } from '../../core/models/comment.model'; import { StorageService } from '../../core/services/storage.service'; import { ApiService } from '../../core/services/api.service'; diff --git a/src/app/features/old-stuff/pages/poll/poll-display/poll-display.component.scss b/src/app/features/old-stuff/pages/poll/poll-display/poll-display.component.scss deleted file mode 100644 index 5ab410dc..00000000 --- a/src/app/features/old-stuff/pages/poll/poll-display/poll-display.component.scss +++ /dev/null @@ -1 +0,0 @@ -@import '../../../../../../styles/variables'; diff --git a/src/app/routes-framadate.ts b/src/app/routes-framadate.ts index 3b18424f..64e14374 100644 --- a/src/app/routes-framadate.ts +++ b/src/app/routes-framadate.ts @@ -37,10 +37,6 @@ export const routes: Routes = [ loadChildren: () => import('./features/participation/participation.module').then((m) => m.ParticipationModule), // resolve: { poll: PollService }, }, - { - path: 'oldstuff', - loadChildren: () => import('./features/old-stuff/old-stuff.module').then((m) => m.OldStuffModule), - }, { path: 'success', component: SuccessComponent,