diff --git a/mocks/db.json b/mocks/db.json
index c1bf054c..ef57cf5a 100644
--- a/mocks/db.json
+++ b/mocks/db.json
@@ -6,7 +6,7 @@
"polls": [
{
"id": 1,
- "slug": "picnic",
+ "custom_url": "picnic",
"configuration": {
"id": 1,
"isAboutDate": true,
@@ -24,7 +24,7 @@
},
{
"id": 2,
- "slug": "vacances",
+ "custom_url": "vacances",
"configuration": {
"id": 2,
"isAboutDate": true,
diff --git a/src/app/features/old-stuff/config/PollConfig.ts b/mocks/old-stuff/config/PollConfig.ts
similarity index 89%
rename from src/app/features/old-stuff/config/PollConfig.ts
rename to mocks/old-stuff/config/PollConfig.ts
index 483b5539..fd45ce06 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 {
@@ -40,7 +40,7 @@ export class PollConfig {
myEmail: string = environment.production ? '' : 'tktest@tktest.com';
myPolls: any = []; // list of retrieved polls from the backend api
/*
- date specific poll, we have the choice to setup different hours (timeList) for all possible dates (dateList), or use the same hours for all dates
+ date specific poll, we have the choice to setup different hours (timeSlices) for all possible dates (dateList), or use the same hours for all dates
*/
allowSeveralHours = 'true';
// access
@@ -50,11 +50,11 @@ export class PollConfig {
expirationDate = ''; // expiracy date
voteStackId = null; // id of the vote stack to update
pollId = null; // id of the current poll when created. data given by the backend api
- pollSlug = null; // id of the current poll when created. data given by the backend api
+ custom_url = null; // id of the current poll when created. data given by the backend api
currentPoll; // current poll selected with createPoll or getPoll of ConfigService
passwordAccess = 0;
password = '';
- customUrl = ''; // custom slug in the url, must be unique
+ customUrl = ''; // custom custom_url in the url, must be unique
customUrlIsUnique = null; // given by the backend
urlSlugPublic = null;
urlPublic = environment.production ? '' : document.location.href + '/poll/id/4';
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 96%
rename from src/app/features/old-stuff/old-stuff-routing.module.ts
rename to mocks/old-stuff/old-stuff-routing.module.ts
index 8a84fe53..a51f91e5 100644
--- a/src/app/features/old-stuff/old-stuff-routing.module.ts
+++ b/mocks/old-stuff/old-stuff-routing.module.ts
@@ -33,7 +33,7 @@ const routes: Routes = [
{ path: 'step/end', component: EndConfirmationComponent },
{ path: 'graphic/:poll', component: PollGraphicComponent },
{ path: 'vote/poll/id/:id', component: PollDisplayComponent },
- { path: 'vote/poll/slug/:slug', component: PollDisplayComponent },
+ { path: 'vote/poll/custom_url/:custom_url', component: PollDisplayComponent },
{ path: 'votingchoice', component: VotingChoiceComponent },
{ path: 'voting', component: VotingComponent },
];
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 86%
rename from src/app/features/old-stuff/pages/admin/admin.component.ts
rename to mocks/old-stuff/pages/admin/admin.component.ts
index 370973d2..5e0c1fd3 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 { PollUtilitiesService } from '../../../../src/app/core/services/poll.utilities.service';
+import { environment } from '../../../../src/environments/environment';
@Component({
selector: 'app-admin',
@@ -16,7 +16,7 @@ export class AdminComponent implements OnInit {
constructor(
public config: ConfigService,
public router: Router,
- private utils: PollUtilities,
+ private utils: PollUtilitiesService,
public http: HttpClient,
public activeRoute: ActivatedRoute
) {}
@@ -39,7 +39,7 @@ export class AdminComponent implements OnInit {
});
}
- // fetch poll with its ID or slug.
+ // fetch poll with its ID or custom_url.
fetchPoll() {
const token = this.tokenForAdministration;
const headers = this.utils.makeHeaders({ token: token });
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 93%
rename from src/app/features/old-stuff/pages/dates/dates.component.ts
rename to mocks/old-stuff/pages/dates/dates.component.ts
index 1caed356..ce9d8046 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 { DateUtilitiesService } from '../../../../src/app/core/services/date.utilities.service';
import { otherDefaultDates } from '../../config/defaultConfigs';
import { ConfigService } from '../../services/config.service';
import { BaseComponent } from '../example/base-page/base.component';
@@ -23,7 +23,7 @@ export class DatesComponent extends BaseComponent implements OnInit {
public config: ConfigService,
private cd: ChangeDetectorRef,
private toastService: ToastService,
- private dateUtilities: DateUtilities,
+ private dateUtilities: DateUtilitiesService,
@Inject(DOCUMENT) private document: any
) {
super(config);
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 94%
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..61a98bbe 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({
@@ -28,7 +28,7 @@ export class PollDisplayComponent extends BaseComponent implements OnInit {
ngOnInit(): void {}
- // fetch poll with its ID or slug.
+ // fetch poll with its ID or custom_url.
fetchPoll() {
const id = this.activeRoute.snapshot.params.poll;
const pollSlug = this.activeRoute.snapshot.params.pollSlug;
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 97%
rename from src/app/features/old-stuff/pages/visibility/visibility.component.html
rename to mocks/old-stuff/pages/visibility/visibility.component.html
index 1244f37e..d57e4f74 100644
--- a/src/app/features/old-stuff/pages/visibility/visibility.component.html
+++ b/mocks/old-stuff/pages/visibility/visibility.component.html
@@ -102,8 +102,8 @@
{{ 'visibility.access_instructions' | translate }}