Skip to content

Commit

Permalink
Merge branch 'main' into movie
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaZhem authored Aug 19, 2024
2 parents 90d3afc + 541fe5a commit 63a60b0
Show file tree
Hide file tree
Showing 20 changed files with 22,598 additions and 20,803 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- id: matrix
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true'
run: echo "value=$PR_JOBS_NAME" >> $GITHUB_OUTPUT
Expand All @@ -24,7 +24,7 @@ jobs:
matrix:
value: ${{ fromJSON(needs.setup.outputs.matrix) }}
steps:
- uses: taiga-family/ci/actions/run/wait-job@v1.66.6
- uses: taiga-family/ci/actions/run/wait-job@v1.67.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
job: ${{ matrix.value }}
Expand All @@ -33,13 +33,13 @@ jobs:
needs: [wait]
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/auto/approve/double@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- uses: taiga-family/ci/actions/auto/approve/double@v1.67.0
with:
token1: ${{ secrets.GITHUB_TOKEN }}
token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }}
- uses: taiga-family/ci/actions/run/merge@v1.66.6
- uses: taiga-family/ci/actions/run/merge@v1.67.0
if: env.IS_RELEASE_BRANCH == 'false'
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
name: Build app
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/setup/node@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- uses: taiga-family/ci/actions/setup/node@v1.67.0
- run: npx nx build

concurrency:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
name: Firebase
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/setup/node@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- uses: taiga-family/ci/actions/setup/node@v1.67.0
- run: npx nx build --base-href='/'
- name: Debug output
run: tree dist/apps/taiga-lumbermill/browser -P '*.html'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/setup/node@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- uses: taiga-family/ci/actions/setup/node@v1.67.0
- run: npx nx build-gh-pages taiga-lumbermill
- uses: JamesIves/[email protected]
with:
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,41 @@ jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/setup/node@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- uses: taiga-family/ci/actions/setup/node@v1.67.0
- run: npm run typecheck

cspell:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/setup/node@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- uses: taiga-family/ci/actions/setup/node@v1.67.0
- run: npm run cspell -- --no-progress

prettier:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/setup/node@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- uses: taiga-family/ci/actions/setup/node@v1.67.0
- run: npm run prettier -- --check

stylelint:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/setup/node@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- uses: taiga-family/ci/actions/setup/node@v1.67.0
- run: npm run stylelint

eslint:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/setup/node@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- uses: taiga-family/ci/actions/setup/node@v1.67.0
- run: npm run lint

result:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/checkout@v1.66.6
- uses: taiga-family/ci/actions/setup/variables@v1.66.6
- uses: taiga-family/ci/actions/setup/node@v1.66.6
- uses: taiga-family/ci/actions/setup/checkout@v1.67.0
- uses: taiga-family/ci/actions/setup/variables@v1.67.0
- uses: taiga-family/ci/actions/setup/node@v1.67.0
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@
</button>
</footer>
</aside>
<main
tuiNavigationMain
class="main"
>
<router-outlet />
<main class="main" tuiNavigationMain>
<router-outlet [style.display]="'none'" />
</main>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<tui-avatar
size="xl"
class="logo"
[src]="token.urlIcon"
/>
<h3
tuiTitle
class="info"
>
{{ token.amount }} (${{ token.symbol }}) have been sent to your wallet
</h3>
<button
tuiButton
(click)="createNew()"
>
Create new Token
</button>
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
.logo {
background-color: #7c48c3;
background-image: linear-gradient(45deg, #c86dd7 0%, #3023ae 100%);
overflow: visible;
margin-left: auto;
margin-right: auto;
animation: spinLogo 5s infinite;
}

@keyframes spinLogo {
0% {
transform: rotateY(0);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
}

12% {
transform: rotateY(90deg) rotateZ(6deg) scale(1.7);
box-shadow: 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.3);
}

25% {
transform: rotateY(180deg);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
}

50% {
transform: rotateY(180deg);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
}

62% {
transform: rotateY(270deg) rotateZ(-8deg) scale(1.7);
box-shadow: 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.3);
}

80% {
transform: rotateY(720deg);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
}

100% {
transform: rotateY(720deg);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
}
}

:host {
display: flex;
flex-direction: column;
gap: 1rem;
}

.info {
margin-left: auto;
margin-right: auto;
text-align: center;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import {CommonModule} from '@angular/common';
import {
ChangeDetectionStrategy,
Component,
EventEmitter,
Input,
Output,
} from '@angular/core';
import {TuiButton, TuiTitle} from '@taiga-ui/core';
import {TuiAvatar} from '@taiga-ui/kit';

import type {Token} from '../minter.component';

@Component({
standalone: true,
selector: 'lmb-minter-created',
imports: [CommonModule, TuiAvatar, TuiButton, TuiTitle],
templateUrl: './minter-created.component.html',
styleUrl: './minter-created.component.less',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class MinterCreatedComponent {
@Input()
public token: Token = {
urlIcon: '',
token: '',
amount: 0,
symbol: '',
};

@Output()
public readonly tokenChange = new EventEmitter<null>();

protected createNew(): void {
this.tokenChange.emit(null);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
@let token = form.controls.name.value;
@let symbol = form.controls.symbol.value;
@let icon = form.controls.urlIcon.value;
@let description = form.controls.description.value;
<form
[formGroup]="form"
(submit)="onSubmit()"
>
<div class="info block-input">
<div tuiCell="l">
<tui-avatar
size="xl"
[src]="!openDialog && icon !== '' ? icon : '@tui.pencil'"
(click)="showDialog()"
/>
<div tuiTitle>
{{ token == '' ? 'Jetton Name' : token }} ({{ symbol == '' ? 'Symbol' : symbol }})
<div tuiSubtitle>{{ description == '' ? 'Description' : description }}</div>
</div>
</div>
</div>
<tui-input
formControlName="name"
tuiHintContent="Your project name with spaces"
>
Jetton Name
<input tuiTextfieldLegacy />
</tui-input>

<tui-error
formControlName="name"
class="block-input"
[error]="[] | tuiFieldError | async"
/>

<tui-input
formControlName="symbol"
tuiHintContent="Currency symbol appearing in balance (usually 3-5 uppercase chars)"
>
Jetton Symbol
<input tuiTextfieldLegacy />
</tui-input>
<tui-error
formControlName="symbol"
class="block-input"
[error]="[] | tuiFieldError | async"
/>

<tui-input-number
formControlName="amount"
tuiHintContent="Number of initial tokens to mint and send to your waller address"
>
Number of tokens
<input tuiTextfieldLegacy />
</tui-input-number>
<tui-error
formControlName="amount"
class="block-input"
[error]="[] | tuiFieldError | async"
/>

<tui-input
formControlName="description"
tuiHintContent="Optional sentence explaining about yor project"
>
Description
<input tuiTextfieldLegacy />
</tui-input>
<tui-error
formControlName="description"
class="block-input"
[error]="[] | tuiFieldError | async"
/>

<button
tuiButton
type="submit"
>
Deploy
</button>
<ng-template
let-observer
[tuiDialogOptions]="{label: 'Edit logo', size: 's', closeable: false, dismissible: false}"
[(tuiDialog)]="openDialog"
>
<p>URL of 256x256 pixel PNG image of token logo</p>
<tui-input
formControlName="urlIcon"
tuiAutoFocus
>
Logo token
</tui-input>
<tui-error
formControlName="urlIcon"
class="block-input"
[error]="[] | tuiFieldError | async"
[style.text-align]="'center'"
/>

<p>
<button
tuiButton
(click)="icon !== '' ? observer.complete() : ''"
>
Submit
</button>
</p>
</ng-template>
</form>
Loading

0 comments on commit 63a60b0

Please sign in to comment.