JS frontend stuff

Move old ember frontend to properly named folder
Add vue based new frontend
This commit is contained in:
Melody Becker 2025-07-07 21:48:39 +02:00
parent 8947d97825
commit 88398334fe
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8
254 changed files with 837 additions and 0 deletions

View file

View file

@ -0,0 +1,13 @@
import { setupTest } from 'frontend-reactive/tests/helpers';
import { module, test } from 'qunit';
module('Unit | Model | account', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const store = this.owner.lookup('service:store');
const model = store.createRecord('account', {});
assert.ok(model, 'model exists');
});
});

View file

@ -0,0 +1,13 @@
import { setupTest } from 'frontend-reactive/tests/helpers';
import { module, test } from 'qunit';
module('Unit | Model | custom account field', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const store = this.owner.lookup('service:store');
const model = store.createRecord('custom-account-field', {});
assert.ok(model, 'model exists');
});
});

View file

@ -0,0 +1,13 @@
import { setupTest } from 'frontend-reactive/tests/helpers';
import { module, test } from 'qunit';
module('Unit | Model | emote', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const store = this.owner.lookup('service:store');
const model = store.createRecord('emote', {});
assert.ok(model, 'model exists');
});
});

View file

@ -0,0 +1,13 @@
import { setupTest } from 'frontend-reactive/tests/helpers';
import { module, test } from 'qunit';
module('Unit | Model | media metadata', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const store = this.owner.lookup('service:store');
const model = store.createRecord('media-metadata', {});
assert.ok(model, 'model exists');
});
});

View file

@ -0,0 +1,13 @@
import { setupTest } from 'frontend-reactive/tests/helpers';
import { module, test } from 'qunit';
module('Unit | Model | note', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const store = this.owner.lookup('service:store');
const model = store.createRecord('note', {});
assert.ok(model, 'model exists');
});
});

View file

@ -0,0 +1,13 @@
import { setupTest } from 'frontend-reactive/tests/helpers';
import { module, test } from 'qunit';
module('Unit | Model | reaction', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const store = this.owner.lookup('service:store');
const model = store.createRecord('reaction', {});
assert.ok(model, 'model exists');
});
});

View file

@ -0,0 +1,13 @@
import { setupTest } from 'frontend-reactive/tests/helpers';
import { module, test } from 'qunit';
module('Unit | Model | relation', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const store = this.owner.lookup('service:store');
const model = store.createRecord('relation', {});
assert.ok(model, 'model exists');
});
});

View file

@ -0,0 +1,13 @@
import { setupTest } from 'frontend-reactive/tests/helpers';
import { module, test } from 'qunit';
module('Unit | Model | remote server', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const store = this.owner.lookup('service:store');
const model = store.createRecord('remote-server', {});
assert.ok(model, 'model exists');
});
});

View file

@ -0,0 +1,13 @@
import { setupTest } from 'frontend-reactive/tests/helpers';
import { module, test } from 'qunit';
module('Unit | Model | role', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const store = this.owner.lookup('service:store');
const model = store.createRecord('role', {});
assert.ok(model, 'model exists');
});
});

View file

@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'frontend-reactive/tests/helpers';
module('Unit | Route | about', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
const route = this.owner.lookup('route:about');
assert.ok(route);
});
});

View file

@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'frontend-reactive/tests/helpers';
module('Unit | Route | application', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
const route = this.owner.lookup('route:application');
assert.ok(route);
});
});

View file

@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'frontend-reactive/tests/helpers';
module('Unit | Route | auth', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
const route = this.owner.lookup('route:auth');
assert.ok(route);
});
});

View file

@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'frontend-reactive/tests/helpers';
module('Unit | Route | index', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
const route = this.owner.lookup('route:index');
assert.ok(route);
});
});

View file

@ -0,0 +1,13 @@
import { module, test } from 'qunit';
import { setupTest } from 'frontend-reactive/tests/helpers';
module('Unit | Route | notes/:note_id', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
assert.ok(true);
// const route = this.owner.lookup("route:notes/:note-id");
// assert.ok(route);
// TODO: Fix and extend tests once dynamic note path exists
});
});

View file

@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'frontend-reactive/tests/helpers';
module('Unit | Route | registerForm', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
const route = this.owner.lookup('route:register-form');
assert.ok(route);
});
});

View file

@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'frontend-reactive/tests/helpers';
module('Unit | Route | testing', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
const route = this.owner.lookup('route:testing');
assert.ok(route);
});
});

View file

@ -0,0 +1,12 @@
import { module, test } from 'qunit';
import { setupTest } from 'frontend-reactive/tests/helpers';
module('Unit | Service | auth', function (hooks) {
setupTest(hooks);
// TODO: Replace this with your real tests.
test('it exists', function (assert) {
const service = this.owner.lookup('service:auth');
assert.ok(service);
});
});

View file

@ -0,0 +1,12 @@
import { module, test } from 'qunit';
import { setupTest } from 'frontend-reactive/tests/helpers';
module('Unit | Service | authentication', function (hooks) {
setupTest(hooks);
// TODO: Replace this with your real tests.
test('it exists', function (assert) {
const service = this.owner.lookup('service:authentication');
assert.ok(service);
});
});