Skip to content

Commit

Permalink
Merge pull request #206 from AresMUSH/dev
Browse files Browse the repository at this point in the history
Version 1.0.9
  • Loading branch information
lynnfaraday authored Nov 7, 2023
2 parents a50ec0f + 1889d49 commit 82e505e
Show file tree
Hide file tree
Showing 20 changed files with 29,359 additions and 30,532 deletions.
8 changes: 7 additions & 1 deletion .ember-cli
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@

Setting `disableAnalytics` to true will prevent any data from being sent.
*/
"disableAnalytics": false
"disableAnalytics": false,

/**
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
*/
"isTypeScriptProject": false
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@
# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
21 changes: 10 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

module.exports = {
root: true,
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
requireConfigFile: false,
babelOptions: {
plugins: [
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
],
},
},
plugins: ['ember'],
Expand Down Expand Up @@ -47,6 +50,7 @@ module.exports = {
files: [
'./.eslintrc.js',
'./.prettierrc.js',
'./.stylelintrc.js',
'./.template-lintrc.js',
'./ember-cli-build.js',
'./testem.js',
Expand All @@ -63,13 +67,8 @@ module.exports = {
browser: false,
node: true,
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
rules: {
// this can be removed once the following is fixed
// https://github.com/mysticatea/eslint-plugin-node/issues/77
'node/no-unpublished-require': 'off',
},
extends: ['plugin:n/recommended'],
},
// Test files:
],
};
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
push:
branches:
- main
- master
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: npm
- name: Install Dependencies
run: npm ci
- name: Lint
run: npm run lint

test:
name: "Test"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: npm
- name: Install Dependencies
run: npm ci
- name: Run Tests
run: npm test
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ errors.txt
# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try

# broccoli-debug
/DEBUG/

# Generated

Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
/coverage/
!.*
.eslintcache
.lint-todo/

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
9 changes: 8 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
'use strict';

module.exports = {
singleQuote: true,
overrides: [
{
files: '*.{js,ts}',
options: {
singleQuote: true,
},
},
],
};
8 changes: 8 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# unconventional files
/blueprints/*/files/

# compiled output
/dist/

# addons
/.node_modules.ember-try/
5 changes: 5 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = {
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
};
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion app/templates/scenes-unshared.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<p>These scenes have been stopped but not shared.</p>

{{#if this.model.delete_unshared}}
<p>Unshared scenes are marked for deletion after {{this.model.unshared_warning_days}} days. You will receive a notification and opportunity to download, share, or restart the scene before it's deleted.'</p>
<p>Unshared scenes are marked for deletion after {{this.model.unshared_warning_days}} days. You will receive a notification and opportunity to download, share, or restart the scene before it's deleted.</p>
{{/if}}

<div class="unshared-scenes-list">
Expand Down
11 changes: 6 additions & 5 deletions bin/update_npm
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ fi

cd /home/ares/ares-webportal/
rm -rf node_modules
rm -rf tmp

. ~/.nvm/nvm.sh
npm install -g npm@6.14.16
nvm install 12
nvm use 12
nvm alias default 12
npm install -g ember-cli@3.28.0
npm install -g npm@8.6
nvm install 18
nvm use 18
nvm alias default 18
npm install -g ember-cli@4.12
npm ci

echo "NPM is updated. You can now start your game like normal."
5 changes: 4 additions & 1 deletion config/ember-cli-update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
"packages": [
{
"name": "ember-cli",
"version": "3.28.6",
"version": "4.12.1",
"blueprints": [
{
"name": "app",
"outputRepo": "https://github.com/ember-cli/ember-new-output",
"codemodsSource": "ember-app-codemods-manifest@1",
"isBaseBlueprint": true
"options": []
"--ci-provider=github"
]
}
]
}
Expand Down
10 changes: 4 additions & 6 deletions config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
'use strict';

module.exports = function (environment) {
let ENV = {
const ENV = {
pageTitle: {
replace: true
},
modulePrefix: 'ares-webportal',
environment,
rootURL: '/',
locationType: 'auto',
locationType: 'history',
flashMessageDefaults: {
timeout: 5000
},
Expand All @@ -19,10 +19,7 @@ module.exports = function (environment) {
// Here you can enable experimental features on an ember canary build
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
},
EXTEND_PROTOTYPES: {
// Prevent Ember Data from overriding Date.parse.
Date: false,
},
EXTEND_PROTOTYPES: true,
},

APP: {
Expand All @@ -48,6 +45,7 @@ module.exports = function (environment) {
ENV.APP.LOG_VIEW_LOOKUPS = false;

ENV.APP.rootElement = '#ember-testing';
ENV.APP.autoboot = false;
}

if (environment === 'production') {
Expand Down
16 changes: 2 additions & 14 deletions config/targets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,9 @@ const browsers = [
'last 1 edge versions',
];

// Ember's browser support policy is changing, and IE11 support will end in
// v4.0 onwards.
//
// See https://deprecations.emberjs.com/v3.x#toc_3-0-browser-support-policy
//
// If you need IE11 support on a version of Ember that still offers support
// for it, uncomment the code block below.
//
// const isCI = Boolean(process.env.CI);
// const isProduction = process.env.EMBER_ENV === 'production';
//
//if (isCI || isProduction) {
// browsers.push('ie 11');
//}

// browsers.push('ie 11');
// }
module.exports = {
browsers,
};
2 changes: 1 addition & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function (defaults) {
let app = new EmberApp(defaults, {
const app = new EmberApp(defaults, {
'ember-bootstrap': {
bootstrapVersion: 5,
importBootstrapFont: false,
Expand Down
Loading

0 comments on commit 82e505e

Please sign in to comment.