Skip to content

Commit

Permalink
Run grunt update, see phetsims/chipper#1148
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 19, 2021
1 parent e08bc62 commit 8e6d0d4
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 19 deletions.
6 changes: 4 additions & 2 deletions joist-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"supportedBrands": [
"phet",
"adapted-from-phet"
]
],
"supportsOutputJS": true
},
"eslintConfig": {
"extends": "../chipper/eslint/sim_eslintrc.js",
Expand Down Expand Up @@ -116,6 +117,7 @@
script.type = type;
script.src = preloadURL;
script.async = false;
script.setAttribute( 'crossorigin', 'use-credentials' );
document.head.appendChild( script );
};

Expand All @@ -127,7 +129,7 @@

// Module loading in compilation-free (development) mode will be kicked off once strings are loaded.
// This is done in load-unbuilt-strings.js
window.phet.chipper.loadModules = () => loadURL( 'js/joist-tests.js', 'module' );
window.phet.chipper.loadModules = () => loadURL( '../chipper/dist/joist/js/joist-tests.js', 'module' );
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion joist_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@

// Module loading in compilation-free (development) mode will be kicked off once strings are loaded.
// This is done in load-unbuilt-strings.js
window.phet.chipper.loadModules = () => loadURL( 'js/joist-main.js', 'module' );
window.phet.chipper.loadModules = () => loadURL( '../chipper/dist/joist/js/joist-main.js', 'module' );
</script>
</body>
</html>
14 changes: 0 additions & 14 deletions js/joistStrings.js

This file was deleted.

255 changes: 255 additions & 0 deletions js/joistStrings.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
// Copyright 2020-2021, University of Colorado Boulder

/**
* Auto-generated from modulify, DO NOT manually modify.
*/
/* eslint-disable */
import getStringModule from '../../chipper/js/getStringModule.js';
import joist from './joist.js';

type StringsType = {
'joist': {
'title': string
},
'done': string,
'menuItem': {
'options': string,
'about': string,
'outputLog': string,
'phetWebsite': string,
'reportAProblem': string,
'screenshot': string,
'fullscreen': string,
'getUpdate': string,
'enhancedSound': string
},
'title': {
'settings': string
},
'showPointers': string,
'termsPrivacyAndLicensing': string,
'credits': {
'title': string,
'leadDesign': string,
'softwareDevelopment': string,
'team': string,
'contributors': string,
'qualityAssurance': string,
'graphicArts': string,
'soundDesign': string,
'translation': string,
'thanks': string
},
'options': {
'title': string
},
'versionPattern': string,
'updates': {
'upToDate': string,
'outOfDate': string,
'checking': string,
'offline': string,
'newVersionAvailable': string,
'yourCurrentVersion': string,
'getUpdate': string,
'noThanks': string
},
'translation': {
'credits': {
'link': string
}
},
'thirdParty': {
'credits': {
'link': string
}
},
'keyboardShortcuts': {
'title': string,
'toGetStarted': string
},
'simTitleWithScreenNamePattern': string,
'projectorMode': string,
'queryParametersWarningDialog': {
'invalidQueryParameters': string,
'oneOrMoreQueryParameters': string,
'theSimulationWillStart': string
},
'ieErrorPage': {
'platformError': string,
'ieIsNotSupported': string,
'useDifferentBrowser': string
},
'preferences': {
'title': string,
'tabs': {
'general': {
'title': string,
'accessibilityIntro': string,
'moreAccessibility': string,
'simulationSpecificSettings': string
},
'visual': {
'title': string,
'interactiveHighlights': string,
'interactiveHighlightsDescription': string
},
'audio': {
'title': string,
'sounds': {
'title': string,
'extraSounds': {
'title': string,
'description': string
},
'description': string
},
'audioFeatures': {
'title': string
}
},
'input': {
'title': string,
'gestureControls': {
'title': string,
'description': string
}
}
}
},
'a11y': {
'keyboardHelp': {
'keyboardShortcuts': string,
'tabToGetStarted': string
},
'playArea': string,
'controlArea': string,
'simScreens': string,
'simScreen': string,
'screenNamePattern': string,
'screenSimPattern': string,
'home': string,
'homeScreenDescription': string,
'homeScreenDescriptionPattern': string,
'simResources': string,
'soundToggle': {
'alert': {
'simSoundOn': string,
'simSoundOff': string
},
'label': string
},
'checkOutShortcuts': string,
'phetMenu': string,
'preferences': {
'tabs': {
'labelledDescriptionPattern': string,
'tabResponsePattern': string,
'visual': {
'interactiveHighlights': {
'enabledAlert': string,
'disabledAlert': string
}
},
'audio': {
'sounds': {
'soundsOn': string,
'soundsOff': string,
'extraSounds': {
'extraSoundsOn': string,
'extraSoundsOff': string
}
},
'voicing': {
'title': string,
'description': string,
'voicingOn': string,
'voicingOff': string,
'toolbar': {
'title': string,
'toolbarAdded': string,
'toolbarRemoved': string
},
'simVoicingOptions': {
'title': string,
'description': string,
'objectDetails': {
'label': string,
'enabledAlert': string,
'disabledAlert': string
},
'contextChanges': {
'label': string,
'enabledAlert': string,
'disabledAlert': string
},
'helpfulHints': {
'label': string,
'enabledAlert': string,
'disabledAlert': string
}
},
'customizeVoice': {
'title': string,
'expandedAlert': string,
'collapsedAlert': string,
'variablesPattern': string,
'writtenVariablesPattern': string,
'voice': {
'title': string,
'noVoicesAvailable': string
},
'rate': {
'title': string,
'labelString': string,
'rangeDescriptions': {
'low': string,
'normal': string,
'aboveNormal': string,
'high': string,
'voiceRateNormal': string
}
},
'pitch': {
'title': string
}
}
}
},
'input': {
'gestureControl': {
'enabledAlert': string,
'disabledAlert': string
}
}
}
},
'toolbar': {
'title': string,
'openToolbar': string,
'closeToolbar': string,
'hideToolbar': string,
'showToolbar': string,
'toolbarShown': string,
'toolbarHidden': string,
'voicing': {
'title': string,
'quickInfo': string,
'playOverviewLabel': string,
'playDetailsLabel': string,
'playHintLabel': string,
'overviewLabel': string,
'detailsLabel': string,
'hintLabel': string,
'simVoicingOnAlert': string,
'simVoicingOffAlert': string
}
}
}
};

const joistStrings = getStringModule( 'JOIST' ) as StringsType;

joist.register( 'joistStrings', joistStrings );

export default joistStrings;
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
},
"eslintConfig": {
"extends": "../chipper/eslint/sim_eslintrc.js",
"parser": "../chipper/node_modules/babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

// In brand layer
"js/joist.js",
"js/joistStrings.js",
"js/joistStrings.ts",

// defined in phet-io layer
"js/packageJSON.js",
Expand Down

0 comments on commit 8e6d0d4

Please sign in to comment.