sync for backup
This commit is contained in:
parent
1fbdf7fc9d
commit
a9916acea5
92 changed files with 35330 additions and 882 deletions
12
frontend-src/app/app.ts
Normal file
12
frontend-src/app/app.ts
Normal 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);
|
0
frontend-src/app/components/.gitkeep
Normal file
0
frontend-src/app/components/.gitkeep
Normal file
1
frontend-src/app/components/note.hbs
Normal file
1
frontend-src/app/components/note.hbs
Normal file
|
@ -0,0 +1 @@
|
|||
{{yield}}
|
14
frontend-src/app/components/note.ts
Normal file
14
frontend-src/app/components/note.ts
Normal 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> {}
|
14
frontend-src/app/config/environment.d.ts
vendored
Normal file
14
frontend-src/app/config/environment.d.ts
vendored
Normal 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;
|
0
frontend-src/app/controllers/.gitkeep
Normal file
0
frontend-src/app/controllers/.gitkeep
Normal file
0
frontend-src/app/helpers/.gitkeep
Normal file
0
frontend-src/app/helpers/.gitkeep
Normal file
24
frontend-src/app/index.html
Normal file
24
frontend-src/app/index.html
Normal 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>
|
0
frontend-src/app/models/.gitkeep
Normal file
0
frontend-src/app/models/.gitkeep
Normal file
14
frontend-src/app/router.ts
Normal file
14
frontend-src/app/router.ts
Normal 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: '/' });
|
||||
});
|
||||
});
|
0
frontend-src/app/routes/.gitkeep
Normal file
0
frontend-src/app/routes/.gitkeep
Normal file
3
frontend-src/app/routes/notes.ts
Normal file
3
frontend-src/app/routes/notes.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import Route from '@ember/routing/route';
|
||||
|
||||
export default class NotesRoute extends Route {}
|
3
frontend-src/app/routes/notes/index.ts
Normal file
3
frontend-src/app/routes/notes/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import Route from '@ember/routing/route';
|
||||
|
||||
export default class NotesIndexRoute extends Route {}
|
9
frontend-src/app/routes/notes/note.ts
Normal file
9
frontend-src/app/routes/notes/note.ts
Normal 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 };
|
||||
}
|
||||
}
|
1
frontend-src/app/styles/app.css
Normal file
1
frontend-src/app/styles/app.css
Normal file
|
@ -0,0 +1 @@
|
|||
/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */
|
4
frontend-src/app/templates/application.hbs
Normal file
4
frontend-src/app/templates/application.hbs
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{page-title "FrontendSrc"}}
|
||||
|
||||
<h1>Home page</h1>
|
||||
{{outlet}}
|
3
frontend-src/app/templates/notes.hbs
Normal file
3
frontend-src/app/templates/notes.hbs
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{page-title "Notes"}}
|
||||
<h2>Note wrapper</h2>
|
||||
{{outlet}}
|
4
frontend-src/app/templates/notes/index.hbs
Normal file
4
frontend-src/app/templates/notes/index.hbs
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{page-title "Index"}}
|
||||
|
||||
<h3>Note index</h3>
|
||||
{{outlet}}
|
4
frontend-src/app/templates/notes/note.hbs
Normal file
4
frontend-src/app/templates/notes/note.hbs
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{page-title "Note"}}
|
||||
|
||||
<h3>Note {{@model.title}}</h3>
|
||||
{{outlet}}
|
Loading…
Add table
Add a link
Reference in a new issue