Skip to content

Commit b038e09

Browse files
chore: format templates (#97)
1 parent 3df271a commit b038e09

File tree

200 files changed

+2094
-1471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+2094
-1471
lines changed
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
import {defineDevConfig} from '@junobuild/config';
1+
import { defineDevConfig } from "@junobuild/config";
22

33
/** @type {import('@junobuild/config').JunoDevConfig} */
44
export default defineDevConfig(() => ({
55
satellite: {
66
collections: {
77
datastore: [
88
{
9-
collection: 'notes',
10-
read: 'managed',
11-
write: 'managed',
12-
memory: 'stable',
13-
mutablePermissions: true
14-
}
9+
collection: "notes",
10+
read: "managed",
11+
write: "managed",
12+
memory: "stable",
13+
mutablePermissions: true,
14+
},
1515
],
1616
storage: [
1717
{
18-
collection: 'images',
19-
read: 'managed',
20-
write: 'managed',
21-
memory: 'stable',
22-
mutablePermissions: true
23-
}
24-
]
25-
}
26-
}
18+
collection: "images",
19+
read: "managed",
20+
write: "managed",
21+
memory: "stable",
22+
mutablePermissions: true,
23+
},
24+
],
25+
},
26+
},
2727
}));
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import {Component} from '@angular/core';
2-
import {initSatellite} from '@junobuild/core';
3-
import {environment} from '../environments/environment';
4-
import {HomeComponent} from './components/home/home.component';
1+
import { Component } from '@angular/core';
2+
import { initSatellite } from '@junobuild/core';
3+
import { environment } from '../environments/environment';
4+
import { HomeComponent } from './components/home/home.component';
55

66
@Component({
77
selector: 'app-root',
88
imports: [HomeComponent],
9-
templateUrl: './app.component.html'
9+
templateUrl: './app.component.html',
1010
})
1111
export class AppComponent {
1212
title = 'Juno / Angular Example';
@@ -16,8 +16,8 @@ export class AppComponent {
1616
satelliteId: environment.satelliteId,
1717
container: environment.container,
1818
workers: {
19-
auth: './assets/workers/auth.worker.js'
20-
}
19+
auth: './assets/workers/auth.worker.js',
20+
},
2121
});
2222
}
2323
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {ApplicationConfig} from '@angular/core';
2-
import {provideRouter} from '@angular/router';
1+
import { ApplicationConfig } from '@angular/core';
2+
import { provideRouter } from '@angular/router';
33

4-
import {routes} from './app.routes';
4+
import { routes } from './app.routes';
55

66
export const appConfig: ApplicationConfig = {
7-
providers: [provideRouter(routes)]
7+
providers: [provideRouter(routes)],
88
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import {Routes} from '@angular/router';
1+
import { Routes } from '@angular/router';
22

33
export const routes: Routes = [];

templates/angular-example/src/app/components/auth/auth.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import {NgIf} from '@angular/common';
2-
import {Component, inject} from '@angular/core';
3-
import {AuthService} from '../../services/auth.service';
4-
import {LoginComponent} from '../login/login.component';
5-
import {LogoutComponent} from '../logout/logout.component';
1+
import { NgIf } from '@angular/common';
2+
import { Component, inject } from '@angular/core';
3+
import { AuthService } from '../../services/auth.service';
4+
import { LoginComponent } from '../login/login.component';
5+
import { LogoutComponent } from '../logout/logout.component';
66

77
@Component({
88
selector: 'app-auth',
99
imports: [LoginComponent, LogoutComponent, NgIf],
10-
templateUrl: './auth.component.html'
10+
templateUrl: './auth.component.html',
1111
})
1212
export class AuthComponent {
1313
private readonly authService = inject(AuthService);
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<div
2-
class="fixed inset-0 z-40 bg-white/30 dark:bg-lavender-blue-200/40 flex items-center justify-center backdrop-blur-xl">
2+
class="dark:bg-lavender-blue-200/40 fixed inset-0 z-40 flex items-center justify-center bg-white/30 backdrop-blur-xl"
3+
>
34
<div
45
*ngIf="spinner"
5-
class="w-12 h-12 rounded-full animate-spin border-[3px] border-solid border-lavender-blue-600 border-t-transparent"></div>
6+
class="border-lavender-blue-600 h-12 w-12 animate-spin rounded-full border-[3px] border-solid border-t-transparent"
7+
></div>
68
</div>

templates/angular-example/src/app/components/backdrop/backdrop.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import {NgClass, NgIf} from '@angular/common';
2-
import {Component, Input} from '@angular/core';
1+
import { NgClass, NgIf } from '@angular/common';
2+
import { Component, Input } from '@angular/core';
33

44
@Component({
55
selector: 'app-backdrop',
66
imports: [NgIf, NgClass],
7-
templateUrl: './backdrop.component.html'
7+
templateUrl: './backdrop.component.html',
88
})
99
export class BackdropComponent {
1010
@Input() spinner = false;
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<div
2-
class="hidden sm:block fixed top-[400px] [@media(min-height:800px)]:top-2/4 right-0 -z-10 translate-x-2/4 lg:translate-x-1/3 -translate-y-2/4 min-h-[800px] h-[100dvh] aspect-square">
2+
class="fixed top-[400px] right-0 -z-10 hidden aspect-square h-[100dvh] min-h-[800px] -translate-y-2/4 translate-x-2/4 sm:block lg:translate-x-1/3 [@media(min-height:800px)]:top-2/4"
3+
>
34
<img
45
src="/assets/juno_illustration.svg"
56
role="presentation"
67
loading="lazy"
7-
alt="An astronaut floating in space around planet Juno orbited by satellites, stars in the background." />
8+
alt="An astronaut floating in space around planet Juno orbited by satellites, stars in the background."
9+
/>
810
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {Component} from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'app-background',
55
imports: [],
6-
templateUrl: './background.component.html'
6+
templateUrl: './background.component.html',
77
})
88
export class BackgroundComponent {}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<button
22
[disabled]="disabled"
33
[ngClass]="[
4-
'flex items-center gap-2 border-black dark:border-lavender-blue-500 border-[3px] transition-all rounded-xs py-1 px-8 my-2 font-semibold text-white bg-lavender-blue-500 dark:bg-black shadow-[5px_5px_0px_rgba(0,0,0,1)] dark:shadow-[5px_5px_0px_#7888ff]',
4+
'dark:border-lavender-blue-500 bg-lavender-blue-500 my-2 flex items-center gap-2 rounded-xs border-[3px] border-black px-8 py-1 font-semibold text-white shadow-[5px_5px_0px_rgba(0,0,0,1)] transition-all dark:bg-black dark:shadow-[5px_5px_0px_#7888ff]',
55
disabled
66
? 'opacity-25'
7-
: 'hover:bg-lavender-blue-600 dark:hover:bg-lavender-blue-300 dark:hover:text-black active:bg-lavender-blue-400 dark:active:bg-lavender-blue-500 active:shadow-none active:translate-x-[5px] active:translate-y-[5px]'
8-
]">
7+
: 'hover:bg-lavender-blue-600 dark:hover:bg-lavender-blue-300 active:bg-lavender-blue-400 dark:active:bg-lavender-blue-500 active:translate-x-[5px] active:translate-y-[5px] active:shadow-none dark:hover:text-black',
8+
]"
9+
>
910
<ng-content></ng-content>
1011
</button>

0 commit comments

Comments
 (0)