ember didn't want to ember, so now it embers again

This commit is contained in:
Melody Becker 2024-09-18 13:49:23 +02:00
parent 5a82179df6
commit 876c7a2b73
56 changed files with 1715 additions and 7649 deletions

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-reactive/config/environment';
export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
Resolver = Resolver;
}
loadInitializers(App, config.modulePrefix);

View file

@ -0,0 +1,4 @@
<div>
<h3>{{@username}}</h3>
<p>{{@content}}</p>
</div>

View file

@ -0,0 +1,14 @@
/**
* Type declarations for
* import config from 'frontend-reactive/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

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FrontendReactive</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-reactive.css">
{{content-for "head-footer"}}
</head>
<body>
{{content-for "body"}}
<script src="{{rootURL}}assets/vendor.js"></script>
<script src="{{rootURL}}assets/frontend-reactive.js"></script>
{{content-for "body-footer"}}
</body>
</html>

View file

View file

@ -0,0 +1,11 @@
import EmberRouter from '@ember/routing/router';
import config from 'frontend-reactive/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
// Add route declarations here
});

View file

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 "FrontendReactive"}}
{{outlet}}
<Timeline::Note @username="bob" @content="Hello world" />