Skip to content

Commit

Permalink
wip interface for submitting and publishing extensions along with bro…
Browse files Browse the repository at this point in the history
…wsing and searching extensions
  • Loading branch information
roncodes committed Mar 19, 2024
1 parent a219643 commit 6497d26
Show file tree
Hide file tree
Showing 38 changed files with 150 additions and 3 deletions.
5 changes: 4 additions & 1 deletion addon/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export default class RegistryBridgeEngine extends Engine {
services,
externalRoutes,
};
setupExtension = function (app, engine, universe) {};
setupExtension = function (app, engine, universe) {
// register menu item in header
universe.registerHeaderMenuItem('Extensions', 'console.registry-bridge', { icon: 'shapes', priority: 99 });
};
}

loadInitializers(RegistryBridgeEngine, modulePrefix);
11 changes: 10 additions & 1 deletion addon/routes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
import buildRoutes from 'ember-engines/routes';

export default buildRoutes(function () {});
export default buildRoutes(function () {
this.route('developers', function () {
this.route('extensions', function () {
this.route('index', { path: '/' });
this.route('new');
this.route('edit', { path: '/edit/:public_id'});
this.route('details', { path: '/:public_id'});
});
});
});
3 changes: 3 additions & 0 deletions addon/routes/developers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Route from '@ember/routing/route';

export default class DevelopersRoute extends Route {}
3 changes: 3 additions & 0 deletions addon/routes/developers/extensions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Route from '@ember/routing/route';

export default class DevelopersExtensionsRoute extends Route {}
3 changes: 3 additions & 0 deletions addon/routes/developers/extensions/details.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Route from '@ember/routing/route';

export default class DevelopersExtensionsDetailsRoute extends Route {}
3 changes: 3 additions & 0 deletions addon/routes/developers/extensions/edit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Route from '@ember/routing/route';

export default class DevelopersExtensionsEditRoute extends Route {}
3 changes: 3 additions & 0 deletions addon/routes/developers/extensions/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Route from '@ember/routing/route';

export default class DevelopersExtensionsIndexRoute extends Route {}
3 changes: 3 additions & 0 deletions addon/routes/developers/extensions/new.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Route from '@ember/routing/route';

export default class DevelopersExtensionsNewRoute extends Route {}
3 changes: 3 additions & 0 deletions addon/routes/explore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Route from '@ember/routing/route';

export default class ExploreRoute extends Route {}
11 changes: 10 additions & 1 deletion addon/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
{{outlet}}
<EmberWormhole @to="sidebar-menu-items">
<Layout::Sidebar::Panel @open={{true}} @title="Developers">
<Layout::Sidebar::Item @route="console.registry-bridge.developers.extensions.new" @icon="plus">Submit new Extension</Layout::Sidebar::Item>
<Layout::Sidebar::Item @route="console.registry-bridge.developers.extensions" @icon="list">Extensions</Layout::Sidebar::Item>
</Layout::Sidebar::Panel>
</EmberWormhole>

<Layout::Section::Container>
{{outlet}}
</Layout::Section::Container>
2 changes: 2 additions & 0 deletions addon/templates/developers.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{page-title "Developers"}}
{{outlet}}
2 changes: 2 additions & 0 deletions addon/templates/developers/extensions.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{page-title "Extensions"}}
{{outlet}}
2 changes: 2 additions & 0 deletions addon/templates/developers/extensions/details.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{page-title "Details"}}
{{outlet}}
2 changes: 2 additions & 0 deletions addon/templates/developers/extensions/edit.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{page-title "Edit"}}
{{outlet}}
2 changes: 2 additions & 0 deletions addon/templates/developers/extensions/index.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{page-title "Index"}}
{{outlet}}
2 changes: 2 additions & 0 deletions addon/templates/developers/extensions/new.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{page-title "New"}}
{{outlet}}
2 changes: 2 additions & 0 deletions addon/templates/explore.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{page-title "Explore"}}
{{outlet}}
1 change: 1 addition & 0 deletions app/routes/developers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/routes/developers';
1 change: 1 addition & 0 deletions app/routes/developers/extensions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/routes/developers/extensions';
1 change: 1 addition & 0 deletions app/routes/developers/extensions/details.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/routes/developers/extensions/details';
1 change: 1 addition & 0 deletions app/routes/developers/extensions/edit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/routes/developers/extensions/edit';
1 change: 1 addition & 0 deletions app/routes/developers/extensions/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/routes/developers/extensions/index';
1 change: 1 addition & 0 deletions app/routes/developers/extensions/new.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/routes/developers/extensions/new';
1 change: 1 addition & 0 deletions app/routes/explore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/routes/explore';
1 change: 1 addition & 0 deletions app/templates/developers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/templates/developers';
1 change: 1 addition & 0 deletions app/templates/developers/extensions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/templates/developers/extensions';
1 change: 1 addition & 0 deletions app/templates/developers/extensions/details.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/templates/developers/extensions/details';
1 change: 1 addition & 0 deletions app/templates/developers/extensions/edit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/templates/developers/extensions/edit';
1 change: 1 addition & 0 deletions app/templates/developers/extensions/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/templates/developers/extensions/index';
1 change: 1 addition & 0 deletions app/templates/developers/extensions/new.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/templates/developers/extensions/new';
1 change: 1 addition & 0 deletions app/templates/explore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/registry-bridge-engine/templates/explore';
11 changes: 11 additions & 0 deletions tests/unit/routes/developers-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'dummy/tests/helpers';

module('Unit | Route | developers', function (hooks) {
setupTest(hooks);

test('it exists', function (assert) {
let route = this.owner.lookup('route:developers');
assert.ok(route);
});
});
11 changes: 11 additions & 0 deletions tests/unit/routes/developers/extensions-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'dummy/tests/helpers';

module('Unit | Route | developers/extensions', function (hooks) {
setupTest(hooks);

test('it exists', function (assert) {
let route = this.owner.lookup('route:developers/extensions');
assert.ok(route);
});
});
11 changes: 11 additions & 0 deletions tests/unit/routes/developers/extensions/details-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'dummy/tests/helpers';

module('Unit | Route | developers/extensions/details', function (hooks) {
setupTest(hooks);

test('it exists', function (assert) {
let route = this.owner.lookup('route:developers/extensions/details');
assert.ok(route);
});
});
11 changes: 11 additions & 0 deletions tests/unit/routes/developers/extensions/edit-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'dummy/tests/helpers';

module('Unit | Route | developers/extensions/edit', function (hooks) {
setupTest(hooks);

test('it exists', function (assert) {
let route = this.owner.lookup('route:developers/extensions/edit');
assert.ok(route);
});
});
11 changes: 11 additions & 0 deletions tests/unit/routes/developers/extensions/index-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'dummy/tests/helpers';

module('Unit | Route | developers/extensions/index', function (hooks) {
setupTest(hooks);

test('it exists', function (assert) {
let route = this.owner.lookup('route:developers/extensions/index');
assert.ok(route);
});
});
11 changes: 11 additions & 0 deletions tests/unit/routes/developers/extensions/new-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'dummy/tests/helpers';

module('Unit | Route | developers/extensions/new', function (hooks) {
setupTest(hooks);

test('it exists', function (assert) {
let route = this.owner.lookup('route:developers/extensions/new');
assert.ok(route);
});
});
11 changes: 11 additions & 0 deletions tests/unit/routes/explore-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'dummy/tests/helpers';

module('Unit | Route | explore', function (hooks) {
setupTest(hooks);

test('it exists', function (assert) {
let route = this.owner.lookup('route:explore');
assert.ok(route);
});
});

0 comments on commit 6497d26

Please sign in to comment.