feat: separate prettier from eslint

This commit is contained in:
Rainer Killinger
2023-01-11 13:25:18 +01:00
committed by Thea Schöbl
parent 939fb6ef0f
commit a88d000ccd
381 changed files with 17952 additions and 38411 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 StApps
* Copyright (C) 2022 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -76,10 +76,7 @@ export class SharedAxisChoreographer<T> {
// pre-place animation state
// new element comes in from the right and pushes the old one to the left
this.animationState =
SHARED_AXIS_DIRECTIONS[
direction ?? this.getDirection(this.currentValue, newValue)
];
this.animationState = SHARED_AXIS_DIRECTIONS[direction ?? this.getDirection(this.currentValue, newValue)];
}
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 StApps
* Copyright (C) 2022 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -12,14 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {
animate,
sequence,
state,
style,
transition,
trigger,
} from '@angular/animations';
import {animate, sequence, state, style, transition, trigger} from '@angular/animations';
/**
* Fade transition
@@ -51,10 +44,7 @@ export const materialManualFade = trigger('materialManualFade', [
*/
export const materialFadeThrough = trigger('materialFadeThrough', [
state('in', style({transform: 'scale(100%)', opacity: 1})),
transition(':enter', [
style({transform: 'scale(80%)', opacity: 0}),
animate('250ms ease'),
]),
transition(':enter', [style({transform: 'scale(80%)', opacity: 0}), animate('250ms ease')]),
transition(':leave', [animate('200ms ease', style({opacity: 0}))]),
]);
@@ -73,31 +63,16 @@ export const SHARED_AXIS_DIRECTIONS = {
* @see {SharedAxisChoreographer}
*/
export const materialSharedAxisX = trigger('materialSharedAxisX', [
state(
SHARED_AXIS_DIRECTIONS[-1],
style({opacity: 0, transform: 'translateX(30px)'}),
),
state(
SHARED_AXIS_DIRECTIONS[0],
style({opacity: 1, transform: 'translateX(0px)'}),
),
state(
SHARED_AXIS_DIRECTIONS[1],
style({opacity: 0, transform: 'translateX(-30px)'}),
),
state(SHARED_AXIS_DIRECTIONS[-1], style({opacity: 0, transform: 'translateX(30px)'})),
state(SHARED_AXIS_DIRECTIONS[0], style({opacity: 1, transform: 'translateX(0px)'})),
state(SHARED_AXIS_DIRECTIONS[1], style({opacity: 0, transform: 'translateX(-30px)'})),
transition(
`${SHARED_AXIS_DIRECTIONS[-1]} => ${SHARED_AXIS_DIRECTIONS[0]}`,
sequence([
style({opacity: 0, transform: 'translateX(-30px)'}),
animate('100ms ease-out'),
]),
sequence([style({opacity: 0, transform: 'translateX(-30px)'}), animate('100ms ease-out')]),
),
transition(`${SHARED_AXIS_DIRECTIONS[0]} => *`, animate('100ms ease-out')),
transition(
`${SHARED_AXIS_DIRECTIONS[1]} => ${SHARED_AXIS_DIRECTIONS[0]}`,
sequence([
style({opacity: 0, transform: 'translateX(30px)'}),
animate('100ms ease-out'),
]),
sequence([style({opacity: 0, transform: 'translateX(30px)'}), animate('100ms ease-out')]),
),
]);