mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-03 12:16:10 +00:00
Pushing internal consolidation of modules to open source (#1835)
This commit is contained in:
parent
5072ef013c
commit
0116a955cb
@ -31,6 +31,7 @@ import {
|
||||
removeFollowForEntity
|
||||
} from '@datahub/data-models/api/common/social-actions';
|
||||
import { DataModelName } from '@datahub/data-models/constants/entity';
|
||||
import { getDefaultIfNotFoundError } from '@datahub/utils/api/error';
|
||||
import { isArray } from '@ember/array';
|
||||
import { noop } from 'lodash';
|
||||
|
||||
@ -515,7 +516,9 @@ export abstract class BaseEntity<T extends {} | IBaseEntity> {
|
||||
*/
|
||||
async readLikes(): Promise<void> {
|
||||
if (this.allowedSocialActions.like) {
|
||||
const likeActions = await readLikesForEntity(this.displayName as DataModelName, this.urn).catch(() => []);
|
||||
const likeActions = await readLikesForEntity(this.displayName as DataModelName, this.urn).catch(
|
||||
getDefaultIfNotFoundError([])
|
||||
);
|
||||
set(this, 'likedByActions', likeActions || []);
|
||||
}
|
||||
}
|
||||
@ -553,7 +556,9 @@ export abstract class BaseEntity<T extends {} | IBaseEntity> {
|
||||
*/
|
||||
async readFollows(): Promise<void> {
|
||||
if (this.allowedSocialActions.follow) {
|
||||
const followActions = await readFollowsForEntity(this.displayName as DataModelName, this.urn).catch(() => []);
|
||||
const followActions = await readFollowsForEntity(this.displayName as DataModelName, this.urn).catch(
|
||||
getDefaultIfNotFoundError([])
|
||||
);
|
||||
|
||||
set(this, 'followedByActions', followActions || []);
|
||||
}
|
||||
|
||||
@ -208,6 +208,12 @@ export class DatasetEntity extends BaseEntity<Com.Linkedin.Dataset.Dataset> {
|
||||
return platformName as DatasetPlatform | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Platform native type, for example it can be TABLE or VIEW for Hive.
|
||||
*/
|
||||
@reads('entity.platformNativeType')
|
||||
platformNativeType?: Com.Linkedin.Dataset.Dataset['platformNativeType'];
|
||||
|
||||
/**
|
||||
* Reference to the data entity's native name, should not be something that is editable but gives us a
|
||||
* more human readable form for the dataset vs the urn
|
||||
|
||||
@ -135,7 +135,7 @@ export const fields: Array<ISearchEntityRenderProps> = [
|
||||
example: 'Public, Private, Deprecated, Public_Production',
|
||||
minAutocompleteFetchLength: 0,
|
||||
tagComponent: {
|
||||
name: 'custom-search-result-property-component/tag',
|
||||
name: 'search/custom-search-result-property-component/tag',
|
||||
options: {
|
||||
state: 'neutral-inverse',
|
||||
titleize: true
|
||||
|
||||
@ -81,7 +81,7 @@ export const getRenderProps = (): IEntityRenderProps & { entityPage: IEntityRend
|
||||
desc: '',
|
||||
example: '',
|
||||
tagComponent: {
|
||||
name: 'custom-search-result-property-component/tag',
|
||||
name: 'search/custom-search-result-property-component/tag',
|
||||
options: {
|
||||
state: 'alert',
|
||||
text: 'Inactive'
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
* Interface for component that renders a formatted date
|
||||
*/
|
||||
export interface ICustomSearchResultPropertyComponentDate {
|
||||
name: 'custom-search-result-property-component/date';
|
||||
name: 'search/custom-search-result-property-component/date';
|
||||
options: {
|
||||
// moment format
|
||||
format: string;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
* Interface for component that renders an icon
|
||||
*/
|
||||
export interface ICustomSearchResultPropertyComponentIcon {
|
||||
name: 'custom-search-result-property-component/icon';
|
||||
name: 'search/custom-search-result-property-component/icon';
|
||||
options: {
|
||||
// Name of the icon
|
||||
iconName: string;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
* Interface for component that renders an external link
|
||||
*/
|
||||
export interface ICustomSearchResultPropertyComponentLink {
|
||||
name: 'custom-search-result-property-component/link';
|
||||
name: 'search/custom-search-result-property-component/link';
|
||||
options: {
|
||||
/**
|
||||
* property from entity that will return a ILink
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
* Interface for component that renders a tag
|
||||
*/
|
||||
export interface ICustomSearchResultPropertyComponentTag {
|
||||
name: 'custom-search-result-property-component/tag';
|
||||
name: 'search/custom-search-result-property-component/tag';
|
||||
options: {
|
||||
// should be type PillState but it is not exposed in nacho-ui
|
||||
state: string;
|
||||
|
||||
@ -15,7 +15,7 @@ import { task } from 'ember-concurrency';
|
||||
import { ETaskPromise } from '@datahub/utils/types/concurrency';
|
||||
import DataModelsService from '@datahub/data-models/services/data-models';
|
||||
import { isNotFoundApiError } from '@datahub/utils/api/shared';
|
||||
import Search from '@datahub/search/services/search';
|
||||
import Search from '@datahub/shared/services/search';
|
||||
import { ISearchEntityRenderProps } from '@datahub/data-models/types/search/search-entity-render-prop';
|
||||
import { IAppConfig, IConfigurator } from '@datahub/shared/types/configurator/configurator';
|
||||
import { TabProperties, DatasetTab } from '@datahub/data-models/constants/entity/dataset/tabs';
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
@import 'compliance-annotations/all';
|
||||
@import 'export-policy/all';
|
||||
@import 'purge-policy/all';
|
||||
@import 'dataset-groups/all';
|
||||
|
||||
@ -23,7 +23,6 @@
|
||||
"dependencies": {
|
||||
"@datahub/data-models": "0.0.0",
|
||||
"@datahub/metadata-types": "0.0.0",
|
||||
"@datahub/search": "0.0.0",
|
||||
"@datahub/utils": "0.0.0",
|
||||
"@fortawesome/ember-fontawesome": "^0.1.13",
|
||||
"@fortawesome/free-regular-svg-icons": "^5.9.0",
|
||||
|
||||
@ -23,8 +23,6 @@
|
||||
"@datahub/data-models/*": ["../../@datahub/data-models/addon/*"],
|
||||
"@datahub/data-models/tests": ["../../@datahub/data-models/tests/*"],
|
||||
"@datahub/data-models/tests/*": ["../../@datahub/data-models/tests/*"],
|
||||
"@datahub/search": ["../../@datahub/search/addon"],
|
||||
"@datahub/search/*": ["../../@datahub/search/addon/*"],
|
||||
"@datahub/shared": ["../../@datahub/shared/addon"],
|
||||
"@datahub/shared/*": ["../../@datahub/shared/addon/*"],
|
||||
"@datahub/metadata-types": ["../../@datahub/metadata-types/addon"],
|
||||
@ -42,8 +40,6 @@
|
||||
"../../@datahub/data-models/addon/**/*",
|
||||
"../../@datahub/data-models/types/**/*",
|
||||
"../../@datahub/data-models/tests/**/*",
|
||||
"../../@datahub/search/addon/**/*",
|
||||
"../../@datahub/search/types/**/*",
|
||||
"../../@datahub/shared/addon/**/*",
|
||||
"../../@datahub/shared/types/**/*",
|
||||
"../../@datahub/shared/tests/**/*",
|
||||
|
||||
@ -1,20 +0,0 @@
|
||||
# EditorConfig helps developers define and maintain consistent
|
||||
# coding styles between different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.hbs]
|
||||
insert_final_newline = false
|
||||
|
||||
[*.{diff,md}]
|
||||
trim_trailing_whitespace = false
|
||||
@ -1,4 +0,0 @@
|
||||
{
|
||||
"disableAnalytics": false,
|
||||
"port": 9007
|
||||
}
|
||||
@ -1,25 +0,0 @@
|
||||
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
||||
|
||||
# compiled output
|
||||
/dist/
|
||||
/tmp/
|
||||
|
||||
# dependencies
|
||||
/bower_components/
|
||||
/node_modules/
|
||||
|
||||
# misc
|
||||
/.env*
|
||||
/.pnp*
|
||||
/.sass-cache
|
||||
/connect.lock
|
||||
/coverage/
|
||||
/libpeerconnection.log
|
||||
/npm-debug.log*
|
||||
/testem.log
|
||||
/yarn-error.log
|
||||
|
||||
# ember-try
|
||||
/.node_modules.ember-try/
|
||||
/bower.json.ember-try
|
||||
/package.json.ember-try
|
||||
@ -1,32 +0,0 @@
|
||||
# compiled output
|
||||
/dist/
|
||||
/tmp/
|
||||
|
||||
# dependencies
|
||||
/bower_components/
|
||||
|
||||
# misc
|
||||
/.bowerrc
|
||||
/.editorconfig
|
||||
/.ember-cli
|
||||
/.env*
|
||||
/.eslintignore
|
||||
/.eslintrc.js
|
||||
/.git/
|
||||
/.gitignore
|
||||
/.template-lintrc.js
|
||||
/.travis.yml
|
||||
/.watchmanconfig
|
||||
/bower.json
|
||||
/config/ember-try.js
|
||||
/CONTRIBUTING.md
|
||||
/ember-cli-build.js
|
||||
/testem.js
|
||||
/tests/
|
||||
/yarn.lock
|
||||
.gitkeep
|
||||
|
||||
# ember-try
|
||||
/.node_modules.ember-try/
|
||||
/bower.json.ember-try
|
||||
/package.json.ember-try
|
||||
@ -1,67 +0,0 @@
|
||||
---
|
||||
language: node_js
|
||||
node_js:
|
||||
# we recommend testing addons with the same minimum supported node version as Ember CLI
|
||||
# so that your addon works for all apps
|
||||
- '10'
|
||||
|
||||
sudo: false
|
||||
dist: trusty
|
||||
|
||||
addons:
|
||||
chrome: stable
|
||||
|
||||
cache:
|
||||
yarn: true
|
||||
|
||||
env:
|
||||
global:
|
||||
# See https://git.io/vdao3 for details.
|
||||
- JOBS=1
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
# npm version tags
|
||||
- /^v\d+\.\d+\.\d+/
|
||||
|
||||
jobs:
|
||||
fail_fast: true
|
||||
allow_failures:
|
||||
- env: EMBER_TRY_SCENARIO=ember-canary
|
||||
|
||||
include:
|
||||
# runs linting and tests with current locked deps
|
||||
|
||||
- stage: 'Tests'
|
||||
name: 'Tests'
|
||||
install:
|
||||
- yarn install --non-interactive
|
||||
script:
|
||||
- yarn lint:hbs
|
||||
- yarn lint:js
|
||||
- yarn test
|
||||
|
||||
- name: 'Floating Dependencies'
|
||||
script:
|
||||
- yarn test
|
||||
|
||||
# we recommend new addons test the current and previous LTS
|
||||
# as well as latest stable release (bonus points to beta/canary)
|
||||
- stage: 'Additional Tests'
|
||||
env: EMBER_TRY_SCENARIO=ember-lts-2.18
|
||||
- env: EMBER_TRY_SCENARIO=ember-lts-3.4
|
||||
- env: EMBER_TRY_SCENARIO=ember-release
|
||||
- env: EMBER_TRY_SCENARIO=ember-beta
|
||||
- env: EMBER_TRY_SCENARIO=ember-canary
|
||||
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
|
||||
|
||||
before_install:
|
||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
- export PATH=$HOME/.yarn/bin:$PATH
|
||||
|
||||
install:
|
||||
- yarn install --no-lockfile --non-interactive
|
||||
|
||||
script:
|
||||
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"ignore_dirs": ["tmp", "dist"]
|
||||
}
|
||||
@ -1,26 +0,0 @@
|
||||
# How To Contribute
|
||||
|
||||
## Installation
|
||||
|
||||
* `git clone <repository-url>`
|
||||
* `cd shared-entity`
|
||||
* `yarn install`
|
||||
|
||||
## Linting
|
||||
|
||||
* `yarn lint:hbs`
|
||||
* `yarn lint:js`
|
||||
* `yarn lint:js --fix`
|
||||
|
||||
## Running tests
|
||||
|
||||
* `ember test` – Runs the test suite on the current Ember version
|
||||
* `ember test --server` – Runs the test suite in "watch mode"
|
||||
* `ember try:each` – Runs the test suite against multiple Ember versions
|
||||
|
||||
## Running the dummy application
|
||||
|
||||
* `ember serve`
|
||||
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
|
||||
|
||||
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
|
||||
@ -1,13 +0,0 @@
|
||||
Copyright (c) 2020 LinkedIn
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@ -1,29 +0,0 @@
|
||||
@datahub/institutional-memory
|
||||
==============================================================================
|
||||
|
||||
An addon that provides a feature to other entities that tracks user provided data about those entities
|
||||
|
||||
|
||||
Compatibility
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
* Ember.js v2.18 or above
|
||||
* Ember CLI v2.13 or above
|
||||
|
||||
|
||||
Usage
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
TBD
|
||||
|
||||
|
||||
Contributing
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
See the [Contributing](CONTRIBUTING.md) guide for details.
|
||||
|
||||
|
||||
License
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
This project is licensed under the [Apache License](LICENSE.md).
|
||||
@ -1 +0,0 @@
|
||||
export { default } from '@datahub/institutional-memory/components/institutional-memory/containers/tab';
|
||||
@ -1 +0,0 @@
|
||||
export { default } from '@datahub/institutional-memory/components/institutional-memory/wiki/url-list';
|
||||
@ -1 +0,0 @@
|
||||
export { default } from '@datahub/institutional-memory/components/institutional-memory/wiki/url-list/add-dialog';
|
||||
@ -1 +0,0 @@
|
||||
@import 'institutional-memory/all';
|
||||
@ -1,80 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const getChannelURL = require('ember-source-channel-url');
|
||||
|
||||
module.exports = function() {
|
||||
return Promise.all([getChannelURL('release'), getChannelURL('beta'), getChannelURL('canary')]).then(urls => {
|
||||
return {
|
||||
useYarn: true,
|
||||
scenarios: [
|
||||
{
|
||||
name: 'ember-lts-2.18',
|
||||
env: {
|
||||
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
|
||||
},
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'@ember/jquery': '^0.5.1',
|
||||
'ember-source': '~2.18.0'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'ember-lts-3.4',
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'ember-source': '~3.4.0'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'ember-release',
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'ember-source': urls[0]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'ember-beta',
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'ember-source': urls[1]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'ember-canary',
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'ember-source': urls[2]
|
||||
}
|
||||
}
|
||||
},
|
||||
// The default `.travis.yml` runs this scenario via `yarn test`,
|
||||
// not via `ember try`. It's still included here so that running
|
||||
// `ember try:each` manually or from a customized CI config will run it
|
||||
// along with all the other scenarios.
|
||||
{
|
||||
name: 'ember-default',
|
||||
npm: {
|
||||
devDependencies: {}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'ember-default-with-jquery',
|
||||
env: {
|
||||
EMBER_OPTIONAL_FEATURES: JSON.stringify({
|
||||
'jquery-integration': true
|
||||
})
|
||||
},
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'@ember/jquery': '^0.5.1'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
});
|
||||
};
|
||||
@ -1,5 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function(/* environment, appConfig */) {
|
||||
return {};
|
||||
};
|
||||
@ -1,18 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
|
||||
|
||||
module.exports = function(defaults) {
|
||||
const app = new EmberAddon(defaults, {
|
||||
// Add options here
|
||||
});
|
||||
|
||||
/*
|
||||
This build file specifies the options for the dummy test app of this
|
||||
addon, located in `/tests/dummy`
|
||||
This build file does *not* influence how the addon or the app using it
|
||||
behave. You most likely want to be modifying `./index.js` or app's build file
|
||||
*/
|
||||
|
||||
return app.toTree();
|
||||
};
|
||||
@ -1,6 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
name: require('./package').name,
|
||||
isDevelopingAddon: () => true
|
||||
};
|
||||
@ -1,88 +0,0 @@
|
||||
{
|
||||
"name": "@datahub/institutional-memory",
|
||||
"version": "0.0.0",
|
||||
"description": "An addon that provides a feature to other entities that tracks user provided data about those entities",
|
||||
"keywords": [
|
||||
"ember-addon"
|
||||
],
|
||||
"repository": "",
|
||||
"license": "MIT",
|
||||
"author": "",
|
||||
"directories": {
|
||||
"doc": "doc",
|
||||
"test": "tests"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "ember build --environment=production",
|
||||
"start": "ember serve",
|
||||
"test": "ember test",
|
||||
"test:all": "ember try:each",
|
||||
"prepublishOnly": "ember ts:precompile",
|
||||
"postpublish": "ember ts:clean"
|
||||
},
|
||||
"dependencies": {
|
||||
"@datahub/data-models": "0.0.0",
|
||||
"@datahub/shared": "0.0.0",
|
||||
"@datahub/utils": "0.0.0",
|
||||
"@fortawesome/ember-fontawesome": "^0.1.13",
|
||||
"@nacho-ui/animations": "^0.0.38",
|
||||
"@nacho-ui/core": "^0.0.38",
|
||||
"@nacho-ui/table": "^0.0.38",
|
||||
"@types/ember-resolver": "^5.0.7",
|
||||
"ember-cli-babel": "^7.17.2",
|
||||
"ember-cli-htmlbars": "^4.2.2",
|
||||
"ember-cli-typescript": "^3.1.3",
|
||||
"ember-concurrency": "^1.1.2",
|
||||
"ember-inflector": "^3.0.0",
|
||||
"ember-modal-dialog": "^3.0.0-beta.0",
|
||||
"ember-moment": "^8.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
"@datahub/metadata-types": "0.0.0",
|
||||
"@ember/optional-features": "^1.3.0",
|
||||
"@glimmer/component": "^1.0.0",
|
||||
"@glimmer/tracking": "^1.0.0",
|
||||
"@types/ember": "^3.1.1",
|
||||
"@types/ember-qunit": "^3.4.7",
|
||||
"@types/ember__test-helpers": "^0.7.9",
|
||||
"@types/qunit": "^2.9.0",
|
||||
"@types/rsvp": "^4.0.3",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"broccoli-asset-rev": "^3.0.0",
|
||||
"ember-auto-import": "^1.5.3",
|
||||
"ember-cli": "~3.16.0",
|
||||
"ember-cli-dependency-checker": "^3.2.0",
|
||||
"ember-cli-inject-live-reload": "^2.0.2",
|
||||
"ember-cli-mirage": "^0.4.15",
|
||||
"ember-cli-moment-shim": "^3.7.1",
|
||||
"ember-cli-sass": "^10.0.0",
|
||||
"ember-cli-sri": "^2.1.1",
|
||||
"ember-cli-typescript-blueprints": "^3.0.0",
|
||||
"ember-cli-uglify": "^3.0.0",
|
||||
"ember-cli-update": "^0.52.1",
|
||||
"ember-decorators": "^6.0.0",
|
||||
"ember-export-application-global": "^2.0.1",
|
||||
"ember-load-initializers": "^2.1.1",
|
||||
"ember-maybe-import-regenerator": "^0.1.6",
|
||||
"ember-qunit": "^4.6.0",
|
||||
"ember-resolver": "^7.0.0",
|
||||
"ember-source": "~3.16.3",
|
||||
"ember-source-channel-url": "^2.0.1",
|
||||
"ember-truth-helpers": "^2.1.0",
|
||||
"ember-try": "^1.4.0",
|
||||
"loader.js": "^4.7.0",
|
||||
"qunit-dom": "^0.9.1",
|
||||
"sass": "^1.21.0",
|
||||
"typescript": "^3.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "10.* || >= 12"
|
||||
},
|
||||
"ember": {
|
||||
"edition": "octane"
|
||||
},
|
||||
"ember-addon": {
|
||||
"configPath": "tests/dummy/config"
|
||||
}
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
module.exports = require('../../configs/testem-base');
|
||||
@ -1,12 +0,0 @@
|
||||
import Application from '@ember/application';
|
||||
import Resolver from 'ember-resolver';
|
||||
import loadInitializers from 'ember-load-initializers';
|
||||
import config from './config/environment';
|
||||
|
||||
export default class App extends Application {
|
||||
modulePrefix = config.modulePrefix;
|
||||
podModulePrefix = config.podModulePrefix;
|
||||
Resolver = Resolver;
|
||||
}
|
||||
|
||||
loadInitializers(App, config.modulePrefix);
|
||||
@ -1,21 +0,0 @@
|
||||
/* eslint-disable @typescript-eslint/no-use-before-define */
|
||||
export default config;
|
||||
|
||||
/**
|
||||
* Type declarations for
|
||||
* import config from './config/environment'
|
||||
*
|
||||
* For now these need to be managed by the developer
|
||||
* since different ember addons can materialize new entries.
|
||||
*/
|
||||
declare const config: {
|
||||
environment: 'development' | 'test' | 'production';
|
||||
modulePrefix: string;
|
||||
podModulePrefix: string;
|
||||
locationType: string;
|
||||
rootURL: string;
|
||||
APP: {
|
||||
// Alternate value for notifications service toast delay, used in test runs
|
||||
notificationsTimeout?: number;
|
||||
};
|
||||
};
|
||||
@ -1,25 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Dummy</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/dummy.css">
|
||||
|
||||
{{content-for "head-footer"}}
|
||||
</head>
|
||||
<body>
|
||||
{{content-for "body"}}
|
||||
|
||||
<script src="{{rootURL}}assets/vendor.js"></script>
|
||||
<script src="{{rootURL}}assets/dummy.js"></script>
|
||||
|
||||
{{content-for "body-footer"}}
|
||||
</body>
|
||||
</html>
|
||||
@ -1,20 +0,0 @@
|
||||
import EmberRouter from '@ember/routing/router';
|
||||
import config from './config/environment';
|
||||
|
||||
export default class Router extends EmberRouter {
|
||||
location = config.locationType;
|
||||
rootURL = config.rootURL;
|
||||
}
|
||||
|
||||
Router.map(function() {
|
||||
this.route('wiki');
|
||||
this.route('testcomponents');
|
||||
// TODO: [META-11856] This is here as the acceptance test for the wiki tab throws an error because
|
||||
// this package has no concept of the user profile page, but the avatar links to such page. Should
|
||||
// be improved when we revamp how testing is done
|
||||
this.route('user', function() {
|
||||
this.route('profile', { path: '/:user_id' }, function() {
|
||||
this.route('tab', { path: '/:tab_selected' });
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -1,9 +0,0 @@
|
||||
@import 'nacho-core';
|
||||
@import 'datahub-utils';
|
||||
@import 'nacho-table';
|
||||
|
||||
@import 'institutional-memory';
|
||||
|
||||
.test-container {
|
||||
width: $max-container-width;
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{{outlet}}
|
||||
@ -1,54 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function(environment) {
|
||||
const ENV = {
|
||||
modulePrefix: 'dummy',
|
||||
environment,
|
||||
rootURL: '/',
|
||||
locationType: 'auto',
|
||||
EmberENV: {
|
||||
FEATURES: {
|
||||
// Here you can enable experimental features on an ember canary build
|
||||
// e.g. 'with-controller': true
|
||||
},
|
||||
EXTEND_PROTOTYPES: {
|
||||
// Prevent Ember Data from overriding Date.parse.
|
||||
Date: false
|
||||
}
|
||||
},
|
||||
|
||||
APP: {
|
||||
// Here you can pass flags/options to your application instance
|
||||
// when it is created
|
||||
}
|
||||
};
|
||||
|
||||
if (environment === 'development') {
|
||||
// ENV.APP.LOG_RESOLVER = true;
|
||||
// ENV.APP.LOG_ACTIVE_GENERATION = true;
|
||||
// ENV.APP.LOG_TRANSITIONS = true;
|
||||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
||||
}
|
||||
|
||||
if (environment === 'test') {
|
||||
// Testem prefers this...
|
||||
ENV.locationType = 'none';
|
||||
|
||||
// keep test console output quieter
|
||||
ENV.APP.LOG_ACTIVE_GENERATION = false;
|
||||
ENV.APP.LOG_VIEW_LOOKUPS = false;
|
||||
ENV.RAISE_ON_DEPRECATION = false;
|
||||
ENV.LOG_STACKTRACE_ON_DEPRECATION = false;
|
||||
|
||||
ENV.APP.rootElement = '#ember-testing';
|
||||
ENV.APP.autoboot = false;
|
||||
ENV.APP.notificationsTimeout = 1;
|
||||
}
|
||||
|
||||
if (environment === 'production') {
|
||||
// here you can enable a production-specific feature
|
||||
}
|
||||
|
||||
return ENV;
|
||||
};
|
||||
@ -1,6 +0,0 @@
|
||||
{
|
||||
"application-template-wrapper": false,
|
||||
"default-async-observers": true,
|
||||
"jquery-integration": false,
|
||||
"template-only-glimmer-components": true
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const browsers = ['last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions'];
|
||||
|
||||
const isCI = !!process.env.CI;
|
||||
const isProduction = process.env.EMBER_ENV === 'production';
|
||||
|
||||
if (isCI || isProduction) {
|
||||
browsers.push('ie 11');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
browsers
|
||||
};
|
||||
@ -1,19 +0,0 @@
|
||||
import { IMirageServer } from '@datahub/utils/types/vendor/ember-cli-mirage-deprecated';
|
||||
import { getInstitutionalMemory, postInstitutionalMemory } from 'dummy/mirage/helpers/institutional-memory';
|
||||
import { IFollowsAspect } from '@datahub/metadata-types/types/aspects/social-actions';
|
||||
|
||||
export default function(this: IMirageServer): void {
|
||||
this.get('/pokemons/:urn/institutionalmemory', getInstitutionalMemory);
|
||||
this.post('/pokemons/:urn/institutionalmemory', postInstitutionalMemory);
|
||||
// TODO Mirage for follows: https://jira01.corp.linkedin.com:8443/browse/META-11926
|
||||
this.get(
|
||||
'/api/v2/pokemons/pikachu:urn/follows',
|
||||
(): IFollowsAspect => ({
|
||||
followers: [
|
||||
{ follower: { corpUser: 'aketchum' } },
|
||||
{ follower: { corpUser: 'misty' } },
|
||||
{ follower: { corpUser: 'brock' } }
|
||||
]
|
||||
})
|
||||
);
|
||||
}
|
||||
@ -1,5 +0,0 @@
|
||||
import { IMirageServer } from '@datahub/utils/types/vendor/ember-cli-mirage-deprecated';
|
||||
|
||||
export default function(server: IMirageServer) {
|
||||
server.createList('institutionalMemory', 2);
|
||||
}
|
||||
@ -1,5 +0,0 @@
|
||||
import { IMirageServer } from '@datahub/utils/types/vendor/ember-cli-mirage-deprecated';
|
||||
|
||||
export default function(server: IMirageServer) {
|
||||
server.createList('institutionalMemory', 2, 'static');
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
import { JSONAPISerializer } from 'ember-cli-mirage';
|
||||
|
||||
export default JSONAPISerializer.extend({});
|
||||
@ -1,3 +0,0 @@
|
||||
# http://www.robotstxt.org
|
||||
User-agent: *
|
||||
Disallow:
|
||||
@ -1,33 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Dummy Tests</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
{{content-for "head"}}
|
||||
{{content-for "test-head"}}
|
||||
|
||||
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
||||
<link rel="stylesheet" href="{{rootURL}}assets/dummy.css">
|
||||
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
|
||||
|
||||
{{content-for "head-footer"}}
|
||||
{{content-for "test-head-footer"}}
|
||||
</head>
|
||||
<body>
|
||||
{{content-for "body"}}
|
||||
{{content-for "test-body"}}
|
||||
|
||||
<script src="/testem.js" integrity=""></script>
|
||||
<script src="{{rootURL}}assets/vendor.js"></script>
|
||||
<script src="{{rootURL}}assets/test-support.js"></script>
|
||||
<script src="{{rootURL}}assets/dummy.js"></script>
|
||||
<script src="{{rootURL}}assets/tests.js"></script>
|
||||
|
||||
{{content-for "body-footer"}}
|
||||
{{content-for "test-body-footer"}}
|
||||
</body>
|
||||
</html>
|
||||
@ -1,8 +0,0 @@
|
||||
import Application from '../app';
|
||||
import config from '../config/environment';
|
||||
import { setApplication } from '@ember/test-helpers';
|
||||
import { start } from 'ember-qunit';
|
||||
|
||||
setApplication(Application.create(config.APP));
|
||||
|
||||
start();
|
||||
@ -1,49 +0,0 @@
|
||||
{
|
||||
"extends": "../../configs/tsconfig-base",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"rootDir": "../../",
|
||||
"alwaysStrict": false,
|
||||
"paths": {
|
||||
"dummy/mirage/*": ["tests/dummy/mirage/*", "../../@datahub/data-models/tests/dummy/mirage/*"],
|
||||
"dummy/tests/*": ["tests/*", "../../@datahub/data-models/tests/*"],
|
||||
"dummy/*": [
|
||||
"tests/dummy/app/*",
|
||||
"app/*",
|
||||
"../../@datahub/data-models/tests/dummy/app/*",
|
||||
"../../@datahub/data-models/tests/app/*"
|
||||
],
|
||||
"@datahub/institutional-memory": ["addon"],
|
||||
"@datahub/institutional-memory/*": ["addon/*"],
|
||||
"@datahub/institutional-memory/test-support": ["addon-test-support"],
|
||||
"@datahub/institutional-memory/test-support/*": ["addon-test-support/*"],
|
||||
"@datahub/utils": ["../../@datahub/utils/addon"],
|
||||
"@datahub/utils/*": ["../../@datahub/utils/addon/*"],
|
||||
"@datahub/data-models": ["../../@datahub/data-models/addon"],
|
||||
"@datahub/data-models/*": ["../../@datahub/data-models/addon/*"],
|
||||
"@datahub/shared": ["../../@datahub/shared/addon"],
|
||||
"@datahub/shared/*": ["../../@datahub/shared/addon/*"],
|
||||
"@datahub/metadata-types": ["../../@datahub/metadata-types/addon"],
|
||||
"@datahub/metadata-types/*": ["../../@datahub/metadata-types/addon/*"],
|
||||
"*": ["types/*"]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"app/**/*",
|
||||
"addon/**/*",
|
||||
"tests/**/*",
|
||||
"types/**/*",
|
||||
"test-support/**/*",
|
||||
"addon-test-support/**/*",
|
||||
"../../@datahub/data-models/addon/**/*",
|
||||
"../../@datahub/data-models/types/**/*",
|
||||
"../../@datahub/data-models/tests/**/*",
|
||||
"../../@datahub/metadata-types/addon/**/*",
|
||||
"../../@datahub/metadata-types/types/**/*",
|
||||
"../../@datahub/utils/addon/**/*",
|
||||
"../../@datahub/utils/types/**/*",
|
||||
"../../@datahub/shared/addon/**/*",
|
||||
"../../@datahub/shared/types/**/*",
|
||||
"../../@datahub/shared/tests/**/*"
|
||||
]
|
||||
}
|
||||
@ -1,6 +0,0 @@
|
||||
// Types for compiled templates
|
||||
declare module '@datahub/institutional-memory/templates/*' {
|
||||
import { TemplateFactory } from 'htmlbars-inline-precompile';
|
||||
const tmpl: TemplateFactory;
|
||||
export default tmpl;
|
||||
}
|
||||
@ -1,20 +0,0 @@
|
||||
# EditorConfig helps developers define and maintain consistent
|
||||
# coding styles between different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.hbs]
|
||||
insert_final_newline = false
|
||||
|
||||
[*.{diff,md}]
|
||||
trim_trailing_whitespace = false
|
||||
@ -1,9 +0,0 @@
|
||||
{
|
||||
/**
|
||||
Ember CLI sends analytics information by default. The data is completely
|
||||
anonymous, but there are times when you might want to disable this behavior.
|
||||
|
||||
Setting `disableAnalytics` to true will prevent any data from being sent.
|
||||
*/
|
||||
"disableAnalytics": false
|
||||
}
|
||||
25
datahub-web/@datahub/search/.gitignore
vendored
25
datahub-web/@datahub/search/.gitignore
vendored
@ -1,25 +0,0 @@
|
||||
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
||||
|
||||
# compiled output
|
||||
/dist/
|
||||
/tmp/
|
||||
|
||||
# dependencies
|
||||
/bower_components/
|
||||
/node_modules/
|
||||
|
||||
# misc
|
||||
/.env*
|
||||
/.pnp*
|
||||
/.sass-cache
|
||||
/connect.lock
|
||||
/coverage/
|
||||
/libpeerconnection.log
|
||||
/npm-debug.log*
|
||||
/testem.log
|
||||
/yarn-error.log
|
||||
|
||||
# ember-try
|
||||
/.node_modules.ember-try/
|
||||
/bower.json.ember-try
|
||||
/package.json.ember-try
|
||||
@ -1,32 +0,0 @@
|
||||
# compiled output
|
||||
/dist/
|
||||
/tmp/
|
||||
|
||||
# dependencies
|
||||
/bower_components/
|
||||
|
||||
# misc
|
||||
/.bowerrc
|
||||
/.editorconfig
|
||||
/.ember-cli
|
||||
/.env*
|
||||
/.eslintignore
|
||||
/.eslintrc.js
|
||||
/.git/
|
||||
/.gitignore
|
||||
/.template-lintrc.js
|
||||
/.travis.yml
|
||||
/.watchmanconfig
|
||||
/bower.json
|
||||
/config/ember-try.js
|
||||
/CONTRIBUTING.md
|
||||
/ember-cli-build.js
|
||||
/testem.js
|
||||
/tests/
|
||||
/yarn.lock
|
||||
.gitkeep
|
||||
|
||||
# ember-try
|
||||
/.node_modules.ember-try/
|
||||
/bower.json.ember-try
|
||||
/package.json.ember-try
|
||||
@ -1,67 +0,0 @@
|
||||
---
|
||||
language: node_js
|
||||
node_js:
|
||||
# we recommend testing addons with the same minimum supported node version as Ember CLI
|
||||
# so that your addon works for all apps
|
||||
- '10'
|
||||
|
||||
sudo: false
|
||||
dist: trusty
|
||||
|
||||
addons:
|
||||
chrome: stable
|
||||
|
||||
cache:
|
||||
yarn: true
|
||||
|
||||
env:
|
||||
global:
|
||||
# See https://git.io/vdao3 for details.
|
||||
- JOBS=1
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
# npm version tags
|
||||
- /^v\d+\.\d+\.\d+/
|
||||
|
||||
jobs:
|
||||
fail_fast: true
|
||||
allow_failures:
|
||||
- env: EMBER_TRY_SCENARIO=ember-canary
|
||||
|
||||
include:
|
||||
# runs linting and tests with current locked deps
|
||||
|
||||
- stage: 'Tests'
|
||||
name: 'Tests'
|
||||
install:
|
||||
- yarn install --non-interactive
|
||||
script:
|
||||
- yarn lint:hbs
|
||||
- yarn lint:js
|
||||
- yarn test
|
||||
|
||||
- name: 'Floating Dependencies'
|
||||
script:
|
||||
- yarn test
|
||||
|
||||
# we recommend new addons test the current and previous LTS
|
||||
# as well as latest stable release (bonus points to beta/canary)
|
||||
- stage: 'Additional Tests'
|
||||
env: EMBER_TRY_SCENARIO=ember-lts-2.18
|
||||
- env: EMBER_TRY_SCENARIO=ember-lts-3.4
|
||||
- env: EMBER_TRY_SCENARIO=ember-release
|
||||
- env: EMBER_TRY_SCENARIO=ember-beta
|
||||
- env: EMBER_TRY_SCENARIO=ember-canary
|
||||
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
|
||||
|
||||
before_install:
|
||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
- export PATH=$HOME/.yarn/bin:$PATH
|
||||
|
||||
install:
|
||||
- yarn install --no-lockfile --non-interactive
|
||||
|
||||
script:
|
||||
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"ignore_dirs": ["tmp", "dist"]
|
||||
}
|
||||
@ -1,13 +0,0 @@
|
||||
Copyright (c) 2020 LinkedIn
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@ -1,4 +0,0 @@
|
||||
Search Addon for DataHub
|
||||
==============================================================================
|
||||
|
||||
This addon contains all the components and code related to search. This addon is not meant to be shared with other projects and should only be used in DataHub project.
|
||||
@ -1 +0,0 @@
|
||||
export { default } from '@datahub/search/components/custom-search-result-property-component/date';
|
||||
@ -1 +0,0 @@
|
||||
export { default } from '@datahub/search/components/custom-search-result-property-component/icon';
|
||||
@ -1 +0,0 @@
|
||||
export { default } from '@datahub/search/components/custom-search-result-property-component/link';
|
||||
@ -1 +0,0 @@
|
||||
export { default } from '@datahub/search/components/custom-search-result-property-component/tag';
|
||||
@ -1 +0,0 @@
|
||||
export { default } from '@datahub/search/services/search';
|
||||
@ -1,80 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const getChannelURL = require('ember-source-channel-url');
|
||||
|
||||
module.exports = function() {
|
||||
return Promise.all([getChannelURL('release'), getChannelURL('beta'), getChannelURL('canary')]).then(urls => {
|
||||
return {
|
||||
useYarn: true,
|
||||
scenarios: [
|
||||
{
|
||||
name: 'ember-lts-2.18',
|
||||
env: {
|
||||
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
|
||||
},
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'@ember/jquery': '^0.5.1',
|
||||
'ember-source': '~2.18.0'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'ember-lts-3.4',
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'ember-source': '~3.4.0'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'ember-release',
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'ember-source': urls[0]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'ember-beta',
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'ember-source': urls[1]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'ember-canary',
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'ember-source': urls[2]
|
||||
}
|
||||
}
|
||||
},
|
||||
// The default `.travis.yml` runs this scenario via `yarn test`,
|
||||
// not via `ember try`. It's still included here so that running
|
||||
// `ember try:each` manually or from a customized CI config will run it
|
||||
// along with all the other scenarios.
|
||||
{
|
||||
name: 'ember-default',
|
||||
npm: {
|
||||
devDependencies: {}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'ember-default-with-jquery',
|
||||
env: {
|
||||
EMBER_OPTIONAL_FEATURES: JSON.stringify({
|
||||
'jquery-integration': true
|
||||
})
|
||||
},
|
||||
npm: {
|
||||
devDependencies: {
|
||||
'@ember/jquery': '^0.5.1'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
});
|
||||
};
|
||||
@ -1,13 +0,0 @@
|
||||
declare const config: {
|
||||
environment: 'development' | 'test' | 'production';
|
||||
modulePrefix: string;
|
||||
podModulePrefix: string;
|
||||
locationType: string;
|
||||
rootURL: string;
|
||||
APP: {
|
||||
// Alternate value for notifications service toast delay, used in test runs
|
||||
notificationsTimeout?: number;
|
||||
};
|
||||
};
|
||||
|
||||
export default config;
|
||||
@ -1,5 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function(/* environment, appConfig */) {
|
||||
return {};
|
||||
};
|
||||
@ -1,18 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
|
||||
|
||||
module.exports = function(defaults) {
|
||||
const app = new EmberAddon(defaults, {
|
||||
// Add options here
|
||||
});
|
||||
|
||||
/*
|
||||
This build file specifies the options for the dummy test app of this
|
||||
addon, located in `/tests/dummy`
|
||||
This build file does *not* influence how the addon or the app using it
|
||||
behave. You most likely want to be modifying `./index.js` or app's build file
|
||||
*/
|
||||
|
||||
return app.toTree();
|
||||
};
|
||||
@ -1,6 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
name: require('./package').name,
|
||||
isDevelopingAddon: () => true
|
||||
};
|
||||
@ -1,81 +0,0 @@
|
||||
{
|
||||
"name": "@datahub/search",
|
||||
"version": "0.0.0",
|
||||
"description": "Search addon for DataHub",
|
||||
"keywords": [
|
||||
"ember-addon"
|
||||
],
|
||||
"repository": "",
|
||||
"license": "MIT",
|
||||
"author": "",
|
||||
"directories": {
|
||||
"doc": "doc",
|
||||
"test": "tests"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "ember build --environment=production",
|
||||
"start": "ember serve",
|
||||
"test": "ember test",
|
||||
"test:all": "ember try:each",
|
||||
"prepublishOnly": "ember ts:precompile",
|
||||
"postpublish": "ember ts:clean"
|
||||
},
|
||||
"dependencies": {
|
||||
"@datahub/data-models": "^0.0.0",
|
||||
"@datahub/metadata-types": "^0.0.0",
|
||||
"@datahub/shared": "^0.0.0",
|
||||
"@datahub/utils": "^0.0.0",
|
||||
"@fortawesome/ember-fontawesome": "^0.1.13",
|
||||
"@fortawesome/free-regular-svg-icons": "^5.9.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.9.0",
|
||||
"@nacho-ui/pill": "^0.0.38",
|
||||
"@types/ember-resolver": "^5.0.7",
|
||||
"ember-cli-babel": "^7.17.2",
|
||||
"ember-cli-htmlbars": "^4.2.2",
|
||||
"ember-cli-string-helpers": "^4.0.5",
|
||||
"ember-cli-typescript": "^3.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
"@ember/optional-features": "^1.3.0",
|
||||
"@glimmer/component": "^1.0.0",
|
||||
"@glimmer/tracking": "^1.0.0",
|
||||
"@types/ember": "^3.1.1",
|
||||
"@types/ember-qunit": "^3.4.7",
|
||||
"@types/ember-test-helpers": "^1.0.5",
|
||||
"@types/ember-testing-helpers": "^0.0.3",
|
||||
"@types/ember__test-helpers": "^0.7.9",
|
||||
"@types/qunit": "^2.9.0",
|
||||
"@types/rsvp": "^4.0.3",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"broccoli-asset-rev": "^3.0.0",
|
||||
"ember-auto-import": "^1.5.3",
|
||||
"ember-cli": "~3.16.0",
|
||||
"ember-cli-dependency-checker": "^3.2.0",
|
||||
"ember-cli-inject-live-reload": "^2.0.2",
|
||||
"ember-cli-sri": "^2.1.1",
|
||||
"ember-cli-typescript-blueprints": "^3.0.0",
|
||||
"ember-cli-uglify": "^3.0.0",
|
||||
"ember-cli-update": "^0.52.1",
|
||||
"ember-export-application-global": "^2.0.1",
|
||||
"ember-load-initializers": "^2.1.1",
|
||||
"ember-maybe-import-regenerator": "^0.1.6",
|
||||
"ember-qunit": "^4.6.0",
|
||||
"ember-resolver": "^7.0.0",
|
||||
"ember-source": "~3.16.3",
|
||||
"ember-source-channel-url": "^2.0.1",
|
||||
"ember-try": "^1.4.0",
|
||||
"loader.js": "^4.7.0",
|
||||
"qunit-dom": "^0.9.1",
|
||||
"typescript": "^3.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "10.* || >= 12"
|
||||
},
|
||||
"ember": {
|
||||
"edition": "octane"
|
||||
},
|
||||
"ember-addon": {
|
||||
"configPath": "tests/dummy/config"
|
||||
}
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
module.exports = require('../../configs/testem-base');
|
||||
@ -1,12 +0,0 @@
|
||||
import Application from '@ember/application';
|
||||
import Resolver from 'ember-resolver';
|
||||
import loadInitializers from 'ember-load-initializers';
|
||||
import config from './config/environment';
|
||||
|
||||
export default class App extends Application {
|
||||
modulePrefix = config.modulePrefix;
|
||||
podModulePrefix = config.podModulePrefix;
|
||||
Resolver = Resolver;
|
||||
}
|
||||
|
||||
loadInitializers(App, config.modulePrefix);
|
||||
@ -1,13 +0,0 @@
|
||||
declare const config: {
|
||||
environment: 'development' | 'test' | 'production';
|
||||
modulePrefix: string;
|
||||
podModulePrefix: string;
|
||||
locationType: string;
|
||||
rootURL: string;
|
||||
APP: {
|
||||
// Alternate value for notifications service toast delay, used in test runs
|
||||
notificationsTimeout?: number;
|
||||
};
|
||||
};
|
||||
|
||||
export default config;
|
||||
@ -1,25 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Dummy</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/dummy.css">
|
||||
|
||||
{{content-for "head-footer"}}
|
||||
</head>
|
||||
<body>
|
||||
{{content-for "body"}}
|
||||
|
||||
<script src="{{rootURL}}assets/vendor.js"></script>
|
||||
<script src="{{rootURL}}assets/dummy.js"></script>
|
||||
|
||||
{{content-for "body-footer"}}
|
||||
</body>
|
||||
</html>
|
||||
@ -1,9 +0,0 @@
|
||||
import EmberRouter from '@ember/routing/router';
|
||||
import config from './config/environment';
|
||||
|
||||
export default class Router extends EmberRouter {
|
||||
location = config.locationType;
|
||||
rootURL = config.rootURL;
|
||||
}
|
||||
|
||||
Router.map(function(): void {});
|
||||
@ -1,3 +0,0 @@
|
||||
<h2 id="title">Welcome to Ember</h2>
|
||||
|
||||
{{outlet}}
|
||||
@ -1,54 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function(environment) {
|
||||
const ENV = {
|
||||
modulePrefix: 'dummy',
|
||||
environment,
|
||||
rootURL: '/',
|
||||
locationType: 'auto',
|
||||
EmberENV: {
|
||||
FEATURES: {
|
||||
// Here you can enable experimental features on an ember canary build
|
||||
// e.g. 'with-controller': true
|
||||
},
|
||||
EXTEND_PROTOTYPES: {
|
||||
// Prevent Ember Data from overriding Date.parse.
|
||||
Date: false
|
||||
}
|
||||
},
|
||||
|
||||
APP: {
|
||||
// Here you can pass flags/options to your application instance
|
||||
// when it is created
|
||||
}
|
||||
};
|
||||
|
||||
if (environment === 'development') {
|
||||
// ENV.APP.LOG_RESOLVER = true;
|
||||
// ENV.APP.LOG_ACTIVE_GENERATION = true;
|
||||
// ENV.APP.LOG_TRANSITIONS = true;
|
||||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
||||
}
|
||||
|
||||
if (environment === 'test') {
|
||||
// Testem prefers this...
|
||||
ENV.locationType = 'none';
|
||||
|
||||
// keep test console output quieter
|
||||
ENV.APP.LOG_ACTIVE_GENERATION = false;
|
||||
ENV.APP.LOG_VIEW_LOOKUPS = false;
|
||||
ENV.RAISE_ON_DEPRECATION = false;
|
||||
ENV.LOG_STACKTRACE_ON_DEPRECATION = false;
|
||||
|
||||
ENV.APP.rootElement = '#ember-testing';
|
||||
ENV.APP.autoboot = false;
|
||||
ENV.APP.notificationsTimeout = 1;
|
||||
}
|
||||
|
||||
if (environment === 'production') {
|
||||
// here you can enable a production-specific feature
|
||||
}
|
||||
|
||||
return ENV;
|
||||
};
|
||||
@ -1,6 +0,0 @@
|
||||
{
|
||||
"application-template-wrapper": false,
|
||||
"default-async-observers": true,
|
||||
"jquery-integration": false,
|
||||
"template-only-glimmer-components": true
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const browsers = ['last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions'];
|
||||
|
||||
const isCI = !!process.env.CI;
|
||||
const isProduction = process.env.EMBER_ENV === 'production';
|
||||
|
||||
if (isCI || isProduction) {
|
||||
browsers.push('ie 11');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
browsers
|
||||
};
|
||||
@ -1,3 +0,0 @@
|
||||
# http://www.robotstxt.org
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user