Skip to content

Commit

Permalink
now working in harmony with console
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Dec 18, 2023
1 parent 82c4dee commit 2835c01
Showing 7 changed files with 185 additions and 11,074 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ module.exports = {
'ember/no-get': 'off',
'ember/classic-decorator-no-classic-methods': 'off',
'no-prototype-builtins': 'off',
'node/no-unpublished-require': [
'n/no-unpublished-require': [
'error',
{
allowModules: ['resolve', 'broccoli-funnel'],
2 changes: 1 addition & 1 deletion .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

module.exports = {
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
};
12 changes: 11 additions & 1 deletion config/environment.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
'use strict';
const { name } = require('../package');
const { name, fleetbase } = require('../package');

module.exports = function (environment) {
let ENV = {
modulePrefix: name,
environment,
mountedEngineRoutePrefix: getMountedEngineRoutePrefix(),
};

return ENV;
};

function getMountedEngineRoutePrefix() {
let mountedEngineRoutePrefix = 'iam';
if (fleetbase && typeof fleetbase.route === 'string') {
mountedEngineRoutePrefix = fleetbase.route;
}

return `console.${mountedEngineRoutePrefix}.`;
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ module.exports = buildEngine({
postprocessTree(type, tree) {
if (type === 'css') {
tree = new Funnel(tree, {
exclude: ['**/@fleetbase/ember-ui/**/*.css']
exclude: ['**/@fleetbase/ember-ui/**/*.css'],
});
}

252 changes: 124 additions & 128 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,130 +1,126 @@
{
"name": "@fleetbase/iam-engine",
"version": "0.0.8",
"description": "Fleetbase IAM extension provides identity and access management module for managing users, permissions and policies.",
"fleetbase": {
"route": "iam",
"dashboard": "int/v1/metrics/iam-dashboard"
},
"keywords": [
"fleetbase-extension",
"identity-access-management",
"fleetbase-iam",
"fleetbase-policy-management",
"fleetbase",
"ember-addon",
"ember-engine"
],
"repository": "https://github.com/fleetbase/iam-engine",
"license": "MIT",
"author": "Fleetbase Pte Ltd <[email protected]>",
"directories": {
"app": "app",
"addon": "addon",
"tests": "tests"
},
"scripts": {
"build": "ember build --environment=production",
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
"lint:css": "stylelint \"**/*.css\"",
"lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
"lint:hbs": "ember-template-lint .",
"lint:hbs:fix": "ember-template-lint . --fix",
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix",
"start": "ember serve",
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each",
"publish:npm": "npm config set registry https://registry.npmjs.org/ && npm publish",
"publish:github": "npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish"
},
"dependencies": {
"@babel/core": "^7.23.2",
"@fleetbase/ember-core": "link:../ember-core",
"@fleetbase/ember-ui": "link:../ember-ui",
"@fortawesome/ember-fontawesome": "^0.4.1",
"@fortawesome/fontawesome-svg-core": "^6.4.0",
"@fortawesome/free-solid-svg-icons": "^6.4.0",
"ember-cli-babel": "^8.2.0",
"ember-cli-htmlbars": "^6.3.0",
"ember-intl": "6.3.2",
"ember-radio-button": "^3.0.0-beta.1",
"ember-wormhole": "^0.6.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-proposal-decorators": "^7.23.2",
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "^3.2.0",
"@embroider/test-setup": "^3.0.2",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
"broccoli-asset-rev": "^3.0.0",
"broccoli-funnel": "^3.0.8",
"concurrently": "^8.2.2",
"ember-auto-import": "^2.6.3",
"ember-cli": "~5.4.1",
"ember-cli-clean-css": "^3.0.0",
"ember-cli-dependency-checker": "^3.3.2",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-terser": "^4.0.2",
"ember-composable-helpers": "^5.0.0",
"ember-concurrency": "^3.1.1",
"ember-concurrency-decorators": "^2.0.3",
"ember-data": "^4.12.5",
"ember-engines": "^0.9.0",
"ember-load-initializers": "^2.1.2",
"ember-math-helpers": "^4.0.0",
"ember-page-title": "^8.0.0",
"ember-qunit": "^8.0.1",
"ember-resolver": "^11.0.1",
"ember-source": "~5.4.0",
"ember-source-channel-url": "^3.0.0",
"ember-template-lint": "^5.11.2",
"ember-try": "^3.0.0",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-ember": "^11.11.1",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-qunit": "^8.0.1",
"loader.js": "^4.7.0",
"prettier": "^3.0.3",
"qunit": "^2.20.0",
"qunit-dom": "^2.0.0",
"stylelint": "^15.11.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-prettier": "^4.0.2",
"webpack": "^5.89.0"
},
"peerDependencies": {
"ember-engines": "^0.9.0"
},
"engines": {
"node": ">= 18"
},
"ember": {
"edition": "octane"
},
"ember-addon": {
"configPath": "tests/dummy/config"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"printWidth": 190,
"overrides": [
{
"files": "*.hbs",
"options": {
"singleQuote": false
}
}
]
}
"name": "@fleetbase/iam-engine",
"version": "0.0.8",
"description": "Fleetbase IAM extension provides identity and access management module for managing users, permissions and policies.",
"fleetbase": {
"route": "iam",
"dashboard": "int/v1/metrics/iam-dashboard"
},
"keywords": [
"fleetbase-extension",
"identity-access-management",
"fleetbase-iam",
"fleetbase-policy-management",
"fleetbase",
"ember-addon",
"ember-engine"
],
"repository": "https://github.com/fleetbase/iam-engine",
"license": "MIT",
"author": "Fleetbase Pte Ltd <[email protected]>",
"directories": {
"app": "app",
"addon": "addon",
"tests": "tests"
},
"scripts": {
"build": "ember build --environment=production",
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
"lint:css": "stylelint \"**/*.css\"",
"lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
"lint:hbs": "ember-template-lint .",
"lint:hbs:fix": "ember-template-lint . --fix",
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix",
"start": "ember serve",
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each",
"publish:npm": "npm config set registry https://registry.npmjs.org/ && npm publish",
"publish:github": "npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish"
},
"dependencies": {
"@fleetbase/ember-core": "link:../ember-core",
"@fleetbase/ember-ui": "link:../ember-ui",
"@babel/core": "^7.23.2",
"ember-cli-babel": "^8.2.0",
"ember-cli-htmlbars": "^6.3.0",
"@fortawesome/ember-fontawesome": "^0.4.1",
"@fortawesome/fontawesome-svg-core": "^6.4.0",
"@fortawesome/free-solid-svg-icons": "^6.4.0",
"ember-intl": "6.3.2",
"ember-radio-button": "^3.0.0-beta.1",
"ember-wormhole": "^0.6.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-proposal-decorators": "^7.23.2",
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "^3.2.0",
"@embroider/test-setup": "^3.0.2",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
"broccoli-asset-rev": "^3.0.0",
"broccoli-funnel": "^3.0.8",
"concurrently": "^8.2.2",
"ember-auto-import": "^2.6.3",
"ember-cli": "~5.4.1",
"ember-cli-clean-css": "^3.0.0",
"ember-cli-dependency-checker": "^3.3.2",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-terser": "^4.0.2",
"ember-data": "^4.12.5",
"ember-engines": "^0.9.0",
"ember-load-initializers": "^2.1.2",
"ember-page-title": "^8.0.0",
"ember-qunit": "^8.0.1",
"ember-resolver": "^11.0.1",
"ember-source": "~5.4.0",
"ember-source-channel-url": "^3.0.0",
"ember-template-lint": "^5.11.2",
"ember-try": "^3.0.0",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-ember": "^11.11.1",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-qunit": "^8.0.1",
"loader.js": "^4.7.0",
"prettier": "^3.0.3",
"qunit": "^2.20.0",
"qunit-dom": "^2.0.0",
"stylelint": "^15.11.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-prettier": "^4.0.2",
"webpack": "^5.89.0"
},
"peerDependencies": {
"ember-engines": "^0.9.0"
},
"engines": {
"node": ">= 18"
},
"ember": {
"edition": "octane"
},
"ember-addon": {
"configPath": "tests/dummy/config"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"printWidth": 190,
"overrides": [
{
"files": "*.hbs",
"options": {
"singleQuote": false
}
}
]
}
}
Loading

0 comments on commit 2835c01

Please sign in to comment.