Skip to content

Commit

Permalink
chore: run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
matschik committed Sep 20, 2023
1 parent 62ab77c commit 0b62d7c
Show file tree
Hide file tree
Showing 21 changed files with 5,052 additions and 2,013 deletions.
6 changes: 3 additions & 3 deletions content/2-templating/4-event-click/qwik/Counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { component$, useStore } from "@builder.io/qwik";

export const Counter = component$(() => {
const store = useStore({ count: 0 });
const incrementCount = $(() => {

const incrementCount = () => {
store.count++;
});
};

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion content/2-templating/5-dom-ref/lit/input-focused.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { customElement, state, query } from "lit/decorators.js";

@customElement("input-focused")
export class InputFocused extends LitElement {
@query('input') inputEl;
@query("input") inputEl;

firstUpdated() {
this.inputEl.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ export class FunnyButton extends LitElement {
background: rgba(0, 0, 0, 0.4);
color: #fff;
padding: 10px 20px;
fontSize: 30px;
fontsize: 30px;
border: 2px solid #fff;
margin: 8px;
transform: scale(0.9);
boxShadow: 4px 4px rgba(0, 0, 0, 0.4);
boxshadow: 4px 4px rgba(0, 0, 0, 0.4);
transition: transform 0.2s cubic-bezier(0.34, 1.65, 0.88, 0.925) 0s;
outline: 0;
}`;
}
`;

render() {
return html`
Expand Down
14 changes: 7 additions & 7 deletions content/4-component-composition/5-context/ember/user-profile.hbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div>
<h2>My Profile</h2>
<p>Username: {{this.user.username}}</p>
<p>Email: {{this.user.email}}</p>
<button {{on "click" (fn this.userService.updateUserName "Jane")}}>
Update username to Jane
</button>
<div>
<h2>My Profile</h2>
<p>Username: {{this.user.username}}</p>
<p>Email: {{this.user.email}}</p>
<button {{on "click" (fn this.userService.updateUserName "Jane")}}>
Update username to Jane
</button>
</div>
20 changes: 10 additions & 10 deletions content/4-component-composition/5-context/ember/user-profile.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Component from '@glimmer/component';
import { service } from '@ember/service';

export default class UserProfileComponent extends Component {
@service userService;

get user() {
return this.userService.user;
}
}
import Component from "@glimmer/component";
import { service } from "@ember/service";

export default class UserProfileComponent extends Component {
@service userService;

get user() {
return this.userService.user;
}
}
44 changes: 22 additions & 22 deletions content/4-component-composition/5-context/ember/user-service.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import Service from '@ember/service';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';

export default class UserServiceService extends Service {
@tracked id = 1;
@tracked username = 'unicorn42';
@tracked email = '[email protected]';

get user() {
return {
id: this.id,
username: this.username,
email: this.email,
};
}

@action
updateUserName(newUsername) {
this.username = newUsername;
}
}
import Service from "@ember/service";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";

export default class UserServiceService extends Service {
@tracked id = 1;
@tracked username = "unicorn42";
@tracked email = "[email protected]";

get user() {
return {
id: this.id,
username: this.username,
email: this.email,
};
}

@action
updateUserName(newUsername) {
this.username = newUsername;
}
}
2 changes: 1 addition & 1 deletion content/7-webapp-features/1-render-app/angular/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<app-root></app-root>
Expand Down
2 changes: 1 addition & 1 deletion content/7-webapp-features/1-render-app/aurelia2/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<script type="module" src="./main.ts"></script>
Expand Down
2 changes: 1 addition & 1 deletion content/7-webapp-features/1-render-app/lit/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<script type="module" src="./app.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion content/7-webapp-features/1-render-app/mithril/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion content/7-webapp-features/1-render-app/react/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion content/7-webapp-features/1-render-app/solid/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion content/7-webapp-features/1-render-app/svelte/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<div id="app"></div>
Expand Down
6 changes: 3 additions & 3 deletions content/7-webapp-features/1-render-app/vue2/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

<script>
export default {
name: 'App'
}
</script>
name: "App",
};
</script>
2 changes: 1 addition & 1 deletion content/7-webapp-features/1-render-app/vue2/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<div id="app"></div>
Expand Down
10 changes: 5 additions & 5 deletions content/7-webapp-features/1-render-app/vue2/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Vue from 'vue'
import App from './App.vue'
import Vue from "vue";
import App from "./App.vue";

new Vue({
el: '#app',
el: "#app",
components: { App },
template: '<App/>'
})
template: "<App/>",
});
2 changes: 1 addition & 1 deletion content/7-webapp-features/1-render-app/vue3/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<div id="app"></div>
Expand Down
6 changes: 3 additions & 3 deletions content/7-webapp-features/1-render-app/vue3/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createApp } from 'vue'
import App from './App.vue'
import { createApp } from "vue";
import App from "./App.vue";

createApp(App).mount('#app')
createApp(App).mount("#app");
4 changes: 3 additions & 1 deletion content/7-webapp-features/2-fetch-data/aurelia1/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { UseFetchUsers } from "./UseFetchUsers";

@autoinject()
export class App {
constructor(private useFetchUsers: UseFetchUsers) { }
constructor(private useFetchUsers: UseFetchUsers) {
this.useFetchUsers = useFetchUsers;
}

attached() {
this.useFetchUsers.fetchData();
Expand Down
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width" />
Expand Down Expand Up @@ -46,7 +46,8 @@
<style>
@font-face {
font-family: "Mona Sans";
src: url("/font/Mona-Sans.woff2") format("woff2 supports variations"),
src:
url("/font/Mona-Sans.woff2") format("woff2 supports variations"),
url("/font/Mona-Sans.woff2") format("woff2-variations");
font-weight: 400 800;
/* font-weight: 400 500 600 700 800; */
Expand Down
Loading

0 comments on commit 0b62d7c

Please sign in to comment.