sync for backup

This commit is contained in:
Melody Becker 2024-08-22 19:57:53 +02:00
parent 1fbdf7fc9d
commit a9916acea5
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8
92 changed files with 35330 additions and 882 deletions

12
frontend-src/app/app.ts Normal file
View file

@ -0,0 +1,12 @@
import Application from '@ember/application';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'frontend-src/config/environment';
export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
Resolver = Resolver;
}
loadInitializers(App, config.modulePrefix);

View file

View file

@ -0,0 +1 @@
{{yield}}

View file

@ -0,0 +1,14 @@
import Component from '@glimmer/component';
export interface NoteSignature {
// The arguments accepted by the component
Args: {};
// Any blocks yielded by the component
Blocks: {
default: [];
};
// The element to which `...attributes` is applied in the component template
Element: null;
}
export default class NoteComponent extends Component<NoteSignature> {}

View file

@ -0,0 +1,14 @@
/**
* Type declarations for
* import config from 'frontend-src/config/environment'
*/
declare const config: {
environment: string;
modulePrefix: string;
podModulePrefix: string;
locationType: 'history' | 'hash' | 'none';
rootURL: string;
APP: Record<string, unknown>;
};
export default config;

View file

View file

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FrontendSrc</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}}
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/frontend-src.css">
{{content-for "head-footer"}}
</head>
<body>
{{content-for "body"}}
<script src="{{rootURL}}assets/vendor.js"></script>
<script src="{{rootURL}}assets/frontend-src.js"></script>
{{content-for "body-footer"}}
</body>
</html>

View file

View file

@ -0,0 +1,14 @@
import EmberRouter from '@ember/routing/router';
import config from 'frontend-src/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
this.route('notes', function () {
this.route('note', { path: '/:note_id' });
this.route('index', { path: '/' });
});
});

View file

View file

@ -0,0 +1,3 @@
import Route from '@ember/routing/route';
export default class NotesRoute extends Route {}

View file

@ -0,0 +1,3 @@
import Route from '@ember/routing/route';
export default class NotesIndexRoute extends Route {}

View file

@ -0,0 +1,9 @@
import Route from '@ember/routing/route';
import type Transition from '@ember/routing/transition';
export default class NotesNoteRoute extends Route {
model(params: any, transition: Transition) {
console.log(params);
return { title: params.note_id };
}
}

View file

@ -0,0 +1 @@
/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */

View file

@ -0,0 +1,4 @@
{{page-title "FrontendSrc"}}
<h1>Home page</h1>
{{outlet}}

View file

@ -0,0 +1,3 @@
{{page-title "Notes"}}
<h2>Note wrapper</h2>
{{outlet}}

View file

@ -0,0 +1,4 @@
{{page-title "Index"}}
<h3>Note index</h3>
{{outlet}}

View file

@ -0,0 +1,4 @@
{{page-title "Note"}}
<h3>Note {{@model.title}}</h3>
{{outlet}}