code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/generators/database-changelog-liquibase/templates/src/main/resources/config/liquibase/changelog/updated_entity.xml.ejs b/generators/database-changelog-liquibase/templates/src/main/resources/config/liquibase/changelog/updated_entity.xml.ejs Added columns to the entity <%= entity.entityClass %>.
-->
<changeSet id="<%= changelogDate %>-1-add-columns" author="jhipster">
- <addColumn tableName="<%= entity.entityTableName %>"<%- formatAsLiquibaseRemarks(entity.javadoc, true) %>>
+ <addColumn tableName="<%= entity.entityTableName %>">
<%_ for (field of addedFields) { _%>
<column name="<%= field.columnName %>" type="<%= field.columnType %>"<%- formatAsLiquibaseRemarks(field.javadoc, true) %>/>
<%_ if (field.shouldCreateContentType) { _%>
-->
<changeSet id="<%= changelogDate %>-1-add-relationships" author="jhipster">
<%_ if (hasRelationShips) { _%>
- <addColumn tableName="<%= entity.entityTableName %>"<%- formatAsLiquibaseRemarks(entity.javadoc, true) %>>
+ <addColumn tableName="<%= entity.entityTableName %>">
<%_
for (relationship of addedRelationships) {
relationshipColumnType = relationship.otherEntityName === 'user' && authenticationTypeOauth2 ? 'varchar(100)' : 'bigint';
| 2 |
diff --git a/app/shared/electron/updater.js b/app/shared/electron/updater.js @@ -3,6 +3,7 @@ import { autoUpdater } from 'electron-updater';
let updater;
autoUpdater.autoDownload = false;
+autoUpdater.allowPrerelease = true;
autoUpdater.on('error', (error) => {
dialog.showErrorBox('Error: ', error == null ? 'unknown' : (error.stack || error).toString());
| 11 |
diff --git a/avatars/avatars.js b/avatars/avatars.js @@ -1728,7 +1728,7 @@ class Avatar {
}
}
if (index !== -1) {
- morphTargetInfluences[index] = facepose.value;
+ morphTargetInfluences[index] = facepose.value ?? 1;
}
}
}
| 0 |
diff --git a/shared/graphql/queries/channel/getChannel.js b/shared/graphql/queries/channel/getChannel.js @@ -27,7 +27,7 @@ const getChannelByIdOptions = {
variables: {
id,
},
- fetchPolicy: 'cache-first',
+ fetchPolicy: 'cache-and-network',
}),
};
@@ -62,7 +62,7 @@ const getChannelBySlugAndCommunitySlugOptions = {
channelSlug: channelSlug,
communitySlug: communitySlug,
},
- fetchPolicy: 'cache-first',
+ fetchPolicy: 'cache-and-network',
}),
};
@@ -77,7 +77,7 @@ const getChannelByMatchOptions = {
channelSlug: channelSlug,
communitySlug: communitySlug,
},
- fetchPolicy: 'cache-first',
+ fetchPolicy: 'cache-and-network',
}),
};
| 1 |
diff --git a/renderer/pages/home.js b/renderer/pages/home.js @@ -222,8 +222,6 @@ class Home extends React.Component {
this.setState({
runningTestGroupName: testGroupName
})
- // TODO Remove this before merge. Here only to test the animation
- return
const Runner = remote.require('./utils/ooni/run').Runner
this.runner = new Runner({testGroupName})
| 2 |
diff --git a/src/Telnet.js b/src/Telnet.js @@ -123,7 +123,9 @@ class TelnetStream extends EventEmitter
databuf.copy(inputbuf, inputlen);
inputlen += databuf.length;
- if (!databuf.toString().match(/[\r\n]/)) {
+ // fresh makes sure that even if we haven't gotten a newline but the client
+ // sent us some initial negotiations to still interpret them
+ if (!databuf.toString().match(/[\r\n]/) && !connection.fresh) {
return;
}
@@ -163,6 +165,7 @@ class TelnetStream extends EventEmitter
case WILL:
case WONT:
case DO:
+ this.telnetCommand(WONT, inputbuf[i + 2]);
case DONT:
i += 3;
break;
@@ -179,6 +182,10 @@ class TelnetStream extends EventEmitter
}
}
+ if (this.stream.fresh) {
+ this.stream.fresh = false;
+ return;
+ }
this.emit('data', cleanbuf.slice(0, cleanlen - 1));
}
}
@@ -191,6 +198,7 @@ class TelnetServer
*/
constructor (streamOpts, listener) {
this.netServer = net.createServer({}, (connection) => {
+ connection.fresh = true;
var stream = new TelnetStream(streamOpts);
stream.attach(connection);
this.netServer.emit('connected', stream);
| 1 |
diff --git a/src/pages/ReimbursementAccount/CompanyStep.js b/src/pages/ReimbursementAccount/CompanyStep.js @@ -102,7 +102,7 @@ class CompanyStep extends React.Component {
this.getErrorText = inputKey => ReimbursementAccountUtils.getErrorText(this.props, this.errorTranslationKeys, inputKey);
this.clearError = inputKey => ReimbursementAccountUtils.clearError(this.props, inputKey);
this.getErrors = () => ReimbursementAccountUtils.getErrors(this.props);
- this.clearIncorporationDateErrorsAndSetValue = this.clearIncorporationDateErrorsAndSetValue.bind(this);
+ this.clearDateErrorsAndSetValue = this.clearDateErrorsAndSetValue.bind(this);
}
getFormattedAddressValue() {
@@ -146,7 +146,7 @@ class CompanyStep extends React.Component {
*
* @param {String} value
*/
- clearIncorporationDateErrorsAndSetValue(value) {
+ clearDateErrorsAndSetValue(value) {
this.clearErrorAndSetValue('incorporationDate', value);
this.clearError('incorporationDateFuture');
}
@@ -266,18 +266,17 @@ class CompanyStep extends React.Component {
hasError={this.getErrors().incorporationType}
/>
</View>
- <View style={[styles.flexRow, styles.mt4]}>
- <View style={[styles.flex1, styles.mr2]}>
+ <View style={styles.mt4}>
<DatePicker
label={this.props.translate('companyStep.incorporationDate')}
- onChange={this.clearIncorporationDateErrorsAndSetValue}
+ onChange={this.clearDateErrorsAndSetValue}
value={this.state.incorporationDate}
placeholder={this.props.translate('companyStep.incorporationDatePlaceholder')}
errorText={this.getErrorText('incorporationDate') || this.getErrorText('incorporationDateFuture')}
translateX={-14}
/>
</View>
- <View style={[styles.flex1]}>
+ <View style={styles.mt4}>
<StatePicker
label={this.props.translate('companyStep.incorporationState')}
onChange={value => this.clearErrorAndSetValue('incorporationState', value)}
@@ -285,7 +284,6 @@ class CompanyStep extends React.Component {
hasError={this.getErrors().incorporationState}
/>
</View>
- </View>
<CheckboxWithLabel
isChecked={this.state.hasNoConnectionToCannabis}
onPress={() => {
| 10 |
diff --git a/public/index.js b/public/index.js @@ -82,6 +82,9 @@ $(function(){
var selected_locations = store.get('selected_locations') || _.compact(_.map(locations, function(ver,loc){ return ver===1?loc:null }));
+ // force the removal of deleted locations
+ selected_locations = _.without(selected_locations, 'carnival', 'theater');
+
function getSelectedCustomLocations(){
var selected_custom_locations = {};
@@ -653,12 +656,12 @@ $(function(){
locationsDist[location] = (locationsDist[location] || 0) +1;
}
+ console.log('');
console.log(_.size(locationsDist) + " locations!");
console.log(locationsDist);
console.log("Std: " + Math.round(math.std(_.values(locationsDist))));
- return "OK!"
-
+ return "OK!";
};
@@ -693,18 +696,17 @@ $(function(){
availableRoles.push(0);
//get a random role from the roles available
}else{
+ // if there are no more roles, reset the roles list, to pick roles again
if(allRoles.length===0){
- var rolePos = _.random(0,originalAllRoles.length-1);
- var role = originalAllRoles[rolePos];
- availableRoles.push(role);
- }else{
+ allRoles = originalAllRoles.slice(0);
+ }
+
var rolePos = _.random(0,allRoles.length-1);
var role = allRoles[rolePos];
allRoles.splice(rolePos,1);
availableRoles.push(role);
}
}
- }
return availableRoles;
}
| 1 |
diff --git a/userscript.user.js b/userscript.user.js @@ -13434,7 +13434,8 @@ var $$IMU_EXPORT$$;
var our_format = available_formats[i];
if (our_format.is_adaptive) {
- //adaptiveformat_to_dash(our_format, adaptionsets);
+ //console_log(our_format, adaptionsets);
+ adaptiveformat_to_dash(our_format, adaptionsets);
} else {
if (our_format.bitrate > maxbitrate) {
maxbitrate = our_format.bitrate;
@@ -13449,8 +13450,9 @@ var $$IMU_EXPORT$$;
// VM3784:15616 [899][StreamController] Video Element Error: MEDIA_ERR_SRC_NOT_SUPPORTED (CHUNK_DEMUXER_ERROR_APPEND_FAILED: Append: stream parsing failed. Data size=742 append_window_start=0 append_window_end=9.22337e+12)
if (false && Object.keys(adaptionsets).length > 0) {
var dash = create_dash_from_adaptionsets(adaptionsets);
+ var dashurl = "data:application/dash+xml," + encodeURIComponent(dash);
urls.push({
- url: "data:application/dash+xml," + encodeURIComponent(dash),
+ url: dashurl,
video: "dash"
});
}
@@ -17131,7 +17133,8 @@ var $$IMU_EXPORT$$;
string_indexof(src, "/user_images/") >= 0)*/) {
// thanks to soplparty on discord
// https://cdnimg.melon.co.kr/resource/image/web/artist/bg_atist_frame.png
- if (/\/resource\/+image\/+web\/+artist\/+/.test(src)) {
+ // https://cdnimg.melon.co.kr/resource/image/web/main/bg_frame.png
+ if (/\/resource\/+image\/+web\/+(?:artist|main)\/+/.test(src)) {
return {
url: src,
bad: "mask"
@@ -17148,6 +17151,7 @@ var $$IMU_EXPORT$$;
// http://cdnimg.melon.co.kr/cm/mv/images/43/501/78/990/50178990_1_640.jpg/melon/quality/80/resize/144/optimize
// http://cdnimg.melon.co.kr/cm/mv/images/43/501/78/990/50178990_1_org.jpg
+ // https://cdnimg.melon.co.kr/cm2/mv/images/wide/502/25/281/50225281_20200828140018_org.jpg
// http://cdnimg.melon.co.kr/svc/images/main/imgUrl20180123110250.jpg/melon/quality/80
// http://cdnimg.melon.co.kr/svc/images/main/imgUrl20180123110250.jpg
@@ -17160,9 +17164,20 @@ var $$IMU_EXPORT$$;
return newsrc;
if (string_indexof(src, "/images/main/") >= 0) {
- return src.replace(/(images\/.*\/[^/_]*)((_[^/.]*)_)?(_?[^/._]*)?(\.[^/.?]*)(?:[?/].*)?$/, "$1$3$5");
+ newsrc = src.replace(/(images\/.*\/[^/_]*)((_[^/.]*)_)?(_?[^/._]*)?(\.[^/.?]*)(?:[?/].*)?$/, "$1$3$5");
} else {
- return src.replace(/(images\/.*\/[^/_]*)((_[^/.]*)_)?(_?[^/._]*)?(\.[^/.?]*)(?:[?/].*)?$/, "$1$3_org$5");
+ newsrc = src.replace(/(images\/.*\/[^/_]*)((_[^/.]*)_)?(_?[^/._]*)?(\.[^/.?]*)(?:[?/].*)?$/, "$1$3_org$5");
+ }
+
+ if (newsrc !== src)
+ return newsrc;
+
+ match = src.match(/\/cm[0-9]*\/+mv\/+images\/+.*\/([0-9]+)_[0-9]+_(?:[0-9]+|org)\.[^/.]+(?:[?#].*)?$/);
+ if (match) {
+ return {
+ url: "https://www.melon.com/video/player.htm?mvId=" + match[1],
+ is_pagelink: true
+ };
}
}
@@ -17180,8 +17195,9 @@ var $$IMU_EXPORT$$;
// thanks to ambler on discord for reporting
// https://www.melon.com/video/player.htm?mvId=50224837&menuId=&autoPlay=Y -- livestream (link given by ambler)
// https://www.melon.com/video/player.htm?mvId=50206531&menuId=&autoPlay=Y -- short video (35 seconds)
+ // https://www.melon.com/video/detail2.htm?mvId=50225043&menuId=27120101
newsrc = website_query({
- website_regex: /^[a-z]+:\/\/[^/]+\/+video\/+player\.htm\?(?:.*&)?mvId=([0-9]+)/,
+ website_regex: /^[a-z]+:\/\/[^/]+\/+video\/+(?:player|detail2)\.htm\?(?:.*&)?mvId=([0-9]+)/,
run: function(cb, match) {
var id = match[1];
var cache_key = "melon_video:" + id;
@@ -17208,6 +17224,8 @@ var $$IMU_EXPORT$$;
return done(null, false);
}
+ videourl = force_https(videourl);
+
return done({
url: videourl,
video: "hls"
| 7 |
diff --git a/assets/js/modules/analytics-4/datastore/api.js b/assets/js/modules/analytics-4/datastore/api.js */
import Data from 'googlesitekit-data';
-const baseInitialState = {};
-const baseActions = {};
-const baseControls = {};
-const baseReducer = ( state, { type } ) => {
- switch ( type ) {
- default: {
- return state;
- }
- }
-};
-const baseResolvers = {};
const baseSelectors = {
/**
* Checks if the Admin API is working.
@@ -74,11 +63,6 @@ const baseSelectors = {
const store = Data.combineStores(
{
- initialState: baseInitialState,
- actions: baseActions,
- controls: baseControls,
- reducer: baseReducer,
- resolvers: baseResolvers,
selectors: baseSelectors,
}
);
| 2 |
diff --git a/website/js/components/designer/index.vue b/website/js/components/designer/index.vue :id="'qa-'+props.item.qid+'-delete'"
)
template(slot="no-data")
- v-alert( :value="true" color="error" icon="warning")
span Sorry, nothing to display here :(
template(slot="expand" slot-scope='props')
qa(:data="props.item")
| 2 |
diff --git a/src/Webform.js b/src/Webform.js @@ -280,11 +280,11 @@ export default class Webform extends NestedDataComponent {
set language(lang) {
return new NativePromise((resolve, reject) => {
this.options.language = lang;
- if (i18next.language === lang) {
+ if (this.i18next.language === lang) {
return resolve();
}
try {
- i18next.changeLanguage(lang, (err) => {
+ this.i18next.changeLanguage(lang, (err) => {
if (err) {
return reject(err);
}
@@ -308,7 +308,7 @@ export default class Webform extends NestedDataComponent {
* @return {*}
*/
addLanguage(code, lang, active = false) {
- i18next.addResourceBundle(code, 'translation', lang, true, true);
+ this.i18next.addResourceBundle(code, 'translation', lang, true, true);
if (active) {
this.language = code;
}
@@ -319,19 +319,19 @@ export default class Webform extends NestedDataComponent {
* @returns {*}
*/
localize() {
- if (i18next.initialized) {
- return NativePromise.resolve(i18next);
+ if (this.i18next.initialized) {
+ return NativePromise.resolve(this.i18next);
}
- i18next.initialized = true;
+ this.i18next.initialized = true;
return new NativePromise((resolve, reject) => {
try {
- i18next.init(this.options.i18n, (err) => {
+ this.i18next.init(this.options.i18n, (err) => {
// Get language but remove any ;q=1 that might exist on it.
- this.options.language = i18next.language.split(';')[0];
+ this.options.language = this.i18next.language.split(';')[0];
if (err) {
return reject(err);
}
- resolve(i18next);
+ resolve(this.i18next);
});
}
catch (err) {
| 4 |
diff --git a/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/explorer/template.vue b/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/explorer/template.vue v-if="publishDialogPath"
:isOpen="publishDialogPath"
:path="publishDialogPath"
- @complete="closePublishing"
- :modalTitle="`Web Publishing: ${publishDialogPath.split('/').pop()}`" />
+ :modalTitle="`Web Publishing: ${publishDialogPath.split('/').pop()}`"
+ @complete="closePublishing" />
</div>
</template>
| 12 |
diff --git a/src/config.js b/src/config.js @@ -59,7 +59,7 @@ const config = {
* </pre>
*/
theme: 'default',
- themeVariables: themes.get,
+ themeVariables: themes['default'].getThemeVariables(),
themeCSS: undefined,
/* **maxTextSize** - The maximum allowed size of the users text diamgram */
maxTextSize: 50000,
| 12 |
diff --git a/mods/ctl/src/commands/apps/deploy.js b/mods/ctl/src/commands/apps/deploy.js @@ -3,6 +3,7 @@ const AppManager = require('@yaps/appmanager')
const prettyjson = require('prettyjson')
const { cli } = require('cli-ux')
const path = require('path')
+const fs = require('fs')
const {Command, flags} = require('@oclif/command')
const {CLIError} = require('@oclif/errors')
const {updateBucketPolicy} = require('@yaps/core')
@@ -19,8 +20,9 @@ class DeployCommand extends Command {
let bucket = 'default'
try {
- const yapsConfig = JSON.parse(path.join(process.cwd(), 'yaps.json'))
- bucket = yapsConfig.bucket || 'default'
+ const yapsConfigFile = await fs.readFileSync(path.join(process.cwd(), 'yaps.json'))
+ const yapsConfig = JSON.parse(yapsConfigFile)
+ bucket = yapsConfig.bucket
} catch(e) {}
cli.action.start('Updating bucket policy')
| 1 |
diff --git a/front/src/actions/profile.js b/front/src/actions/profile.js @@ -175,7 +175,7 @@ function createActions(store) {
});
route('/dashboard/settings/user');
} catch (e) {
- console.log(e);
+ console.error(e);
const status = get(e, 'response.status');
if (status === 409) {
store.setState({
| 14 |
diff --git a/src/core/createOptIn.js b/src/core/createOptIn.js @@ -14,13 +14,13 @@ import { defer } from "../utils";
const COOKIE_NAMESPACE = "optIn";
-// The user has opted into all behaviors.
+// The user has opted into all purposes.
const ALL = "all";
-// The user has opted into no behaviors.
+// The user has opted into no purposes.
const NONE = "none";
-// The user has yet to provide opt-in behaviors.
+// The user has yet to provide opt-in purposes.
const PENDING = "pending";
export default () => {
@@ -65,7 +65,7 @@ export default () => {
processDeferreds();
},
/**
- * Whether the user has opted into all behaviors.
+ * Whether the user has opted into all purposes.
* @returns {boolean}
*/
// TODO Once we support opting into specific purposes, this
@@ -75,9 +75,9 @@ export default () => {
return purposes === ALL;
},
/**
- * Returns a promise that is resolved once the user opts into all behaviors.
+ * Returns a promise that is resolved once the user opts into all purposes.
* If the user has already opted in, the promise will already be resolved.
- * The user user opts into no behaviors, the promise will be rejected.
+ * The user user opts into no purposes, the promise will be rejected.
*/
// TODO Once we support opting into specific purposes, this
// method will accept an array of purpose names as an argument and
| 10 |
diff --git a/scenes/treehouse.scn b/scenes/treehouse.scn ],
"start_url": "https://webaverse.github.io/treehouse/"
},
+ {
+ "position": [
+ 24,
+ 0,
+ 16
+ ],
+ "quaternion": [
+ 0,
+ 1,
+ 0,
+ 0
+ ],
+ "start_url": "https://webaverse.github.io/ramp/"
+ },
{
"position": [
-6,
| 0 |
diff --git a/metaverse_modules/path/index.js b/metaverse_modules/path/index.js @@ -12,6 +12,8 @@ export default () => {
const {StreetGeometry} = useGeometries();
const {alea} = useProcGen();
+ app.name = 'path';
+
const line = app.getComponent('line') ?? [
[0, 0, 0],
[0, 0, -1],
| 0 |
diff --git a/src/scripts/interactive-video.js b/src/scripts/interactive-video.js @@ -722,7 +722,7 @@ InteractiveVideo.prototype.addSplash = function () {
this.$splash = $(
'<div class="h5p-splash-wrapper">' +
'<div class="h5p-splash-outer">' +
- '<div class="h5p-splash" role="button" tabindex="0">' +
+ '<div class="h5p-splash" role="button" tabindex="0" aria-label="' + this.options.video.startScreenOptions.title + '">' +
'<div class="h5p-splash-main">' +
'<div class="h5p-splash-main-outer">' +
'<div class="h5p-splash-main-inner">' +
| 0 |
diff --git a/types/index.d.ts b/types/index.d.ts @@ -820,7 +820,8 @@ declare namespace math {
* @param node Tree to replace variable nodes in
* @param scope Scope to read/write variables
*/
- resolve<TNode = MathNode>(node: TNode, scope: Record<string, any>): TNode;
+ resolve(node: MathNode, scope?: Record<string, any>): MathNode;
+ resolve(node: MathNode[], scope?: Record<string, any>): MathNode[];
/**
* Calculate the Sparse Matrix LU decomposition with full pivoting.
| 7 |
diff --git a/src/service-broker.js b/src/service-broker.js @@ -1011,7 +1011,7 @@ class ServiceBroker {
// Remove the context from the active contexts list
if (ctx.tracked) {
- p.then(res => {
+ p = p.then(res => {
ctx.dispose();
return res;
});
@@ -1048,7 +1048,7 @@ class ServiceBroker {
// Remove the context from the active contexts list
if (ctx.tracked) {
- p.then(res => {
+ p = p.then(res => {
ctx.dispose();
return res;
});
| 1 |
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -10,6 +10,13 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master
where X.Y.Z is the semver of most recent plotly.js release.
+## [1.28.1] -- 2017-06-20
+
+### Fixed
+- Fix `scattergl` selected points. Points do not disappear after zoom any more
+ in fast mode [#1800]
+
+
## [1.28.0] -- 2017-06-19
### Added
@@ -38,7 +45,7 @@ where X.Y.Z is the semver of most recent plotly.js release.
- Miscellaneous performance improvements including improved bounding box caching
and adding a few short-circuit [#1772, #1792]
-###
+### Fixed
- Fix pan/zoom for layout component linked to `category` axes [#1748, #1791]
- Fix non-`linear` gl3d axis range settings [#1730]
- Fix `ohlc` and `candlestick` when open value equals close value [#1655]
| 3 |
diff --git a/weapons-manager.js b/weapons-manager.js @@ -14,6 +14,7 @@ import {rigManager} from './rig.js';
import {buildMaterial} from './shaders.js';
import {makeTextMesh} from './vr-ui.js';
import activateManager from './activate-manager.js';
+import dropManager from './drop-manager.js';
import {teleportMeshes} from './teleport.js';
import {appManager, renderer, scene, orthographicScene, camera, dolly} from './app-object.js';
import {inventoryAvatarScene, inventoryAvatarCamera, inventoryAvatarRenderer, update as inventoryUpdate} from './inventory.js';
@@ -1816,7 +1817,15 @@ const weaponsManager = {
},
menuBDown() {
if (!appManager.grabbedObjects[0]) {
+ if (!physicsManager.getThrowState()) {
physicsManager.setThrowState({});
+
+ const transforms = rigManager.getRigTransforms();
+ const {quaternion} = transforms[0];
+ dropManager.drop(rigManager.localRig.modelBones.Right_wrist, {
+ velocity: new THREE.Vector3(0, 0, -20).applyQuaternion(quaternion),
+ });
+ }
}
},
menuBUp() {
| 0 |
diff --git a/docs/content/widgets/DateTimeFields.js b/docs/content/widgets/DateTimeFields.js @@ -42,14 +42,16 @@ export const DateTimeFields = <cx>
<div layout={LabelsLeftLayout}>
<DateTimeField label="Time" value:bind="$page.time" segment="time"/>
<TimeField label="Time" value:bind="$page.time" />
+ <TimeField label="Time" value:bind="$page.time" picker="list" step={20} />
</div>
</div>
<Content name="code">
- <CodeSnippet fiddle="oUVatu1E">{`
+ <CodeSnippet fiddle="jCNZu1pp">{`
<div layout={LabelsLeftLayout}>
<DateTimeField label="Time" value:bind="$page.time" segment="time" />
<TimeField label="Time" value:bind="$page.time" />
+ <TimeField label="Time" value:bind="$page.time" picker="list" step={20} />
</div>
`}</CodeSnippet>
</Content>
@@ -70,7 +72,7 @@ export const DateTimeFields = <cx>
</div>
<Content name="code">
- <CodeSnippet>{`
+ <CodeSnippet fiddle="bANd9ALo">{`
<div layout={LabelsTopLayout}>
<DateField label="Date" value:bind="$page.datetime" partial />
<TimeField label="Time" value:bind="$page.datetime" partial />
@@ -82,7 +84,17 @@ export const DateTimeFields = <cx>
## Configuration
- <ConfigTable props={configs}/>
+ <ConfigTable props={{
+ ...configs,
+ picker: {
+ type: 'string',
+ key: true,
+ description: <cx><Md>
+ Modifies the appearance of dropdown into a list format. In this case `step` is also configurable.
+ </Md></cx>
+ }
+ }}
+ />
</Md>
</cx>
| 0 |
diff --git a/extension/data/tbui.js b/extension/data/tbui.js purifyObject(input[key]);
break;
case 'string':
+ // Let's see if we are dealing with json.
+ // We want to handle json properly otherwise the purify process will mess up things.
+ try {
+ const jsonObject = JSON.parse(input[key]);
+ purifyObject(jsonObject);
+ input[key] = JSON.stringify(jsonObject);
+
+ } catch(e) {
+ // Not json, simply purify
input[key] = TBui.purify(input[key]);
+ }
break;
case 'function':
// If we are dealing with an actual function something is really wrong and we'll overwrite it.
| 9 |
diff --git a/core/algorithm-builder/environments/nodejs/wrapper/package.json b/core/algorithm-builder/environments/nodejs/wrapper/package.json "author": "",
"license": "ISC",
"dependencies": {
- "@hkube/nodejs-wrapper": "^2.0.20"
+ "@hkube/nodejs-wrapper": "^2.0.21"
},
"devDependencies": {}
}
\ No newline at end of file
| 3 |
diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/storage/10-file.html b/packages/node_modules/@node-red/nodes/locales/en-US/storage/10-file.html <dd>The contents of the file as either a string or binary buffer.</dd>
<dt class="optional">filename <span class="property-type">string</span></dt>
<dd>If not configured in the node, this optional property sets the name of the file to be read.</dd>
- <dt class="optional">error <span class="property-type">object</span></dt>
</dl>
<h3>Details</h3>
<p>The filename should be an absolute path, otherwise it will be relative to
| 2 |
diff --git a/README.md b/README.md Spearmint helps developers easily create functional React tests without writing any code. It dynamically converts user inputs into executable Jest test code by using DOM query selectors provided by the react-testing-library.
+spearmint is currently under development! We just finished our MVP and are looking for beta testers. Please open a new issue with details to report a bug. Adding support to mock API requests, context and redux support are on the roadmap.
+
## How to use
Download spearmint @ spearmintjs.com. Available for Mac OS, Windows, and Linux. To run tests generated by spearmint install jest, jest-dom, react-testing-library, and test-data-bot in your dev dependencies.
| 3 |
diff --git a/src/encoded/schemas/library.json b/src/encoded/schemas/library.json "chemical (generic)",
"chemical (DNaseI)",
"chemical (RNase III)",
+ "chemical (HindIII restriction)",
+ "chemical (MboI restriction)",
+ "chemical (NcoI restriction)",
+ "chemical ('DpnII restriction)",
"chemical (HindIII/DpnII restriction)",
"chemical (Tn5 transposase)",
"chemical (micrococcal nuclease)",
| 0 |
diff --git a/src/patterns/fundamentals/layers/base.hbs b/src/patterns/fundamentals/layers/base.hbs @@ -48,9 +48,7 @@ doclayout: true
</td>
<td>
<ul class="drizzle-b-List drizzle-b-List--nested">
- <li>Secondary Navigation (sub-menu)</li>
- <li>Narrow Navigation (open menu)</li>
- <li>Masthead (narrow)</li>
+ <li>Masthead</li>
</ul>
</td>
</tr>
@@ -64,6 +62,7 @@ doclayout: true
<li>Choice Modal (Overlay)</li>
<li>Wait Modal (Overlay)</li>
<li>Info Modal (Overlay)</li>
+ <li>Masthead (Narrow Overlay)</li>
</ul>
</td>
</tr>
| 3 |
diff --git a/app/views/main.scala.html b/app/views/main.scala.html <span class="footerheader">CONNECT</span><br/>
<a target="_blank" href="https://github.com/ProjectSidewalk/SidewalkWebpage" id="connect-github-link"><img width="15" src='@routes.Assets.at("assets/github_logo.png")'> Github</a> <br/>
<a target="_blank" href="https://twitter.com/projsidewalk" id="connect-twitter-link"><img width="15" src='@routes.Assets.at("assets/twitter_logo.png")'> Twitter</a><br/>
- <a target="_blank" href="mailto:sidewalk@@umiacs.umd.edu" id="connect-email-link"><img width="15" src='@routes.Assets.at("assets/email.png")'> Email Us</a><br/>
+ <a target="_blank" href="mailto:sidewalk@@cs.uw.edu" id="connect-email-link"><img width="15" src='@routes.Assets.at("assets/email.png")'> Email Us</a><br/>
<a target="_blank" href="https://www.facebook.com/projsidewalk" id="connect-facebook-link"><img width="15" src='@routes.Assets.at("assets/facebook_logo.png")'> Facebook</a><br/>
</div>
</div>
| 3 |
diff --git a/packages/react-router-website/modules/api/Installation.md b/packages/react-router-website/modules/api/Installation.md @@ -14,8 +14,8 @@ All of the package modules can be imported from the top:
```js
import {
- BrowserRouter as Router
- StaticRouter // for server rendering
+ BrowserRouter as Router,
+ StaticRouter, // for server rendering
Route,
Link
// etc.
@@ -44,7 +44,7 @@ All of the package modules can be imported from the top:
```js
import {
- NativeRouter as Router
+ NativeRouter as Router,
DeepLinking,
AndroidBackButton,
Link,
| 0 |
diff --git a/per-seat-subscriptions/server/README.md b/per-seat-subscriptions/server/README.md @@ -5,6 +5,7 @@ Pick the language you are most comfortable with and follow the instructions in t
# Supported languages
+- [.NET (.NET 3.1)](dotnet/README.md)
- [Java (Spark)](java/README.md)
- [JavaScript (Node)](node/README.md)
- [PHP (Slim)](php/README.md)
| 0 |
diff --git a/src/webroutes/diagnostics-log.js b/src/webroutes/diagnostics-log.js @@ -18,9 +18,7 @@ const xss = new xssClass.FilterXSS({
*/
module.exports = async function action(res, req) {
const logHistory = getLog();
- dir(xss.whiteList)
- logError('Soma random error <b>asdASD</b>' + Math.random())
- logError('Soma random error <script>alert()</script>')
+
let processedLog = [];
logHistory.forEach(logData => {
let ts = dateFormat(new Date(logData.ts*1000), 'HH:MM:ss');
| 2 |
diff --git a/assets/js/modules/tagmanager/setup.js b/assets/js/modules/tagmanager/setup.js @@ -50,7 +50,7 @@ class TagmanagerSetup extends Component {
errorCode: false,
errorMsg: '',
refetch: false,
- selectedAccount: settings.accountID || 0,
+ selectedAccount: settings.accountID,
selectedContainer: settings[ containerKey ] || 0,
containersLoading: false,
usageContext,
| 2 |
diff --git a/packages/vulcan-forms/lib/components/Form.jsx b/packages/vulcan-forms/lib/components/Form.jsx @@ -44,6 +44,7 @@ import isObject from 'lodash/isObject';
import mapValues from 'lodash/mapValues';
import pickBy from 'lodash/pickBy';
import omit from 'lodash/omit';
+import without from 'lodash/without';
import _filter from 'lodash/filter';
import { convertSchema, formProperties } from '../modules/schema_utils';
@@ -668,7 +669,6 @@ class SmartForm extends Component {
currentValues,
currentDocument,
deletedValues,
- foo: {},
};
Object.keys(newValues).forEach(key => {
@@ -679,7 +679,7 @@ class SmartForm extends Component {
// delete value
unset(newState.currentValues, path);
set(newState.currentDocument, path, null);
- newState.deletedValues = [...prevState.deletedValues, path];
+ newState.deletedValues = [...newState.deletedValues, path];
} else {
// 1. update currentValues
set(newState.currentValues, path, value);
@@ -694,7 +694,8 @@ class SmartForm extends Component {
}
// 3. in case value had previously been deleted, "undelete" it
- newState.deletedValues = _.without(prevState.deletedValues, path);
+ newState.deletedValues = without(newState.deletedValues, path);
+
}
});
if (changeCallback) changeCallback(newState.currentDocument);
| 9 |
diff --git a/.github/workflows/e2ePerformanceRegressionTests.yml b/.github/workflows/e2ePerformanceRegressionTests.yml @@ -10,6 +10,11 @@ jobs:
steps:
- uses: Expensify/App/.github/actions/composite/setupNode@main
+ - uses: ruby/setup-ruby@eae47962baca661befdfd24e4d6c34ade04858f7
+ with:
+ ruby-version: '2.7'
+ bundler-cache: true
+
- name: Build APK
run: npm run android-build-e2e
@@ -28,6 +33,7 @@ jobs:
with:
name: run_with_uploads
project_arn: ${{ secrets.AWS_PROJECT_ARN }}
+ device_pool_arn: ${{ secrets.AWS_DEVICE_POOL_ARN }}
app_file: android/app/build/outputs/apk/e2eRelease/app-e2eRelease.apk
app_type: ANDROID_APP
test_type: APPIUM_NODE
| 12 |
diff --git a/app/views/shared/_update_email_activity.html.erb b/app/views/shared/_update_email_activity.html.erb <%- if notifier.is_a?(Identification) %>
<div style="margin-bottom:10px;">
<%= taxon_image(notifier.taxon, :style => "max-width:32px; vertical-align:middle;") %>
- <span><%= t(:user_s_id, :user => user.login, :id => t(:id)) %>:</span>
+ <span><%= t(:users_id, user: user.login) %>:</span>
<%= render :partial => 'shared/taxon',
:locals => { taxon: notifier.taxon,
link_url: taxon_url(notifier.taxon),
| 14 |
diff --git a/tasks/noci_test.sh b/tasks/noci_test.sh #! /bin/bash
+#
+# Run tests that aren't ran on CI (yet)
+#
+# to run all no-ci tests
+# $ (plotly.js) ./tasks/noci_test.sh
+#
+# to run jasmine no-ci tests
+# $ (plotly.js) ./tasks/noci_test.sh jasmine
+
+# to run image no-ci tests
+# $ (plotly.js) ./tasks/noci_test.sh image
+#
+# -----------------------------------------------
EXIT_STATE=0
root=$(dirname $0)/..
-# tests that aren't run on CI (yet)
-
# jasmine specs with @noCI tag
+test_jasmine () {
npm run test-jasmine -- --tags=noCI,noCIdep --nowatch || EXIT_STATE=$?
+}
# mapbox image tests take too much resources on CI
#
@@ -15,12 +28,27 @@ npm run test-jasmine -- --tags=noCI,noCIdep --nowatch || EXIT_STATE=$?
# 'old' image server
#
# cone traces don't render correctly in the imagetest container
+test_image () {
$root/../orca/bin/orca.js graph \
$root/test/image/mocks/mapbox_* \
$root/test/image/mocks/gl3d_cone* \
--plotly $root/build/plotly.js \
--mapbox-access-token "pk.eyJ1IjoiZXRwaW5hcmQiLCJhIjoiY2luMHIzdHE0MGFxNXVubTRxczZ2YmUxaCJ9.hwWZful0U2CQxit4ItNsiQ" \
--output-dir $root/test/image/baselines/ \
- --verbose
+ --verbose || EXIT_STATE=$?
+}
+
+case $1 in
+ jasmine)
+ test_jasmine
+ ;;
+ image)
+ test_image
+ ;;
+ *)
+ test_jasmine
+ test_image
+ ;;
+esac
exit $EXIT_STATE
| 0 |
diff --git a/token-metadata/0xBA50933C268F567BDC86E1aC131BE072C6B0b71a/metadata.json b/token-metadata/0xBA50933C268F567BDC86E1aC131BE072C6B0b71a/metadata.json "symbol": "ARPA",
"address": "0xBA50933C268F567BDC86E1aC131BE072C6B0b71a",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/src/resources/container.js b/src/resources/container.js @@ -97,7 +97,7 @@ Object.assign(pc, function () {
if (!err) {
pc.GlbParser.parseAsync(self._getUrlWithoutParams(url.original),
- pc.path.extractPath(url.original),
+ pc.path.extractPath(url.load),
response,
self._device,
asset.registry,
| 4 |
diff --git a/docs/source/docs/examples/buttons.blade.md b/docs/source/docs/examples/buttons.blade.md @@ -81,7 +81,7 @@ description: null
### Elevated
@component('_partials.code-sample', ['lang' => 'html', 'class' => 'text-center'])
-<button class="bg-white hover:bg-smoke-lighter text-slate-dark font-semibold py-2 px-4 border border-slate-lighter rounded shadow">
+<button class="bg-white hover:bg-grey-lightest text-grey-darkest font-semibold py-2 px-4 border border-grey-light rounded shadow">
Button
</button>
@endcomponent
@@ -90,10 +90,10 @@ description: null
@component('_partials.code-sample', ['lang' => 'html', 'class' => 'text-center'])
<div class="inline-flex">
- <button class="bg-smoke hover:bg-smoke-dark text-slate-dark font-bold py-2 px-4 rounded-l">
+ <button class="bg-grey-light hover:bg-grey text-grey-darkest font-bold py-2 px-4 rounded-l">
Prev
</button>
- <button class="bg-smoke hover:bg-smoke-dark text-slate-dark font-bold py-2 px-4 rounded-r">
+ <button class="bg-grey-light hover:bg-grey text-grey-darkest font-bold py-2 px-4 rounded-r">
Next
</button>
</div>
@@ -102,7 +102,7 @@ description: null
### Icons
@component('_partials.code-sample', ['lang' => 'html', 'class' => 'text-center'])
-<button class="bg-smoke hover:bg-smoke-dark text-slate-dark font-bold py-2 px-4 rounded inline-flex items-center">
+<button class="bg-grey-light hover:bg-grey text-grey-darkest font-bold py-2 px-4 rounded inline-flex items-center">
<svg class="w-4 h-4 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M13 8V2H7v6H2l8 8 8-8h-5zM0 18h20v2H0v-2z"/></svg>
<span>Download</span>
</button>
| 2 |
diff --git a/src/patterns/components/alerts/collection.yaml b/src/patterns/components/alerts/collection.yaml @@ -14,24 +14,45 @@ restrictions:
has a unique data-id property ("alert-info-1", "alert-info-2", "alert-info-1", etc).
sparkPackageCore: true
variableTable:
+ $sprk-alert-border-radius:
+ default: 4px
+ description: Sets the border-radius.
$sprk-alert-border:
default: 1px solid $sprk-gray
description: Sets the border surrounding the alert.
+ $sprk-alert-border-info:
+ default: 1px solid $sprk-blue
+ description: Sets the border surrounding the information alert.
+ $sprk-alert-border-success:
+ default: 1px solid $sprk-green
+ description: Sets the border surrounding the success alert.
+ $sprk-alert-border-fail:
+ default: 1px solid $sprk-yellow
+ description: Sets the border surrounding the failure alert.
$sprk-alert-border-radius:
default: 3px
description: Sets the width of the inset box-shadow X offset value to create the color bar on the right side of the alert.
$sprk-alert-color:
default: $sprk-black
description: Sets the color property of the alert.
- $sprk-alert-color-info:
+ $sprk-alert-text-color-info:
default: $sprk-black
description: Sets the color property of the information alert.
- $sprk-alert-color-success:
+ $sprk-alert-icon-color-info:
+ default: $sprk-blue
+ description: Sets the icon color of the information alert.
+ $sprk-alert-text-color-success:
default: $sprk-black
description: Sets the color property of the success alert.
- $sprk-alert-color-fail:
+ $sprk-alert-icon-color-success:
+ default: $sprk-green
+ description: Sets the icon color of the success alert.
+ $sprk-alert-text-color-fail:
default: $sprk-black
description: Sets the color property of the failure alert.
+ $sprk-alert-icon-color-fail:
+ default: $sprk-yellow
+ description: Sets the icon color of the failure alert.
$sprk-alert-bg-color:
default: $sprk-white
description: Sets the background color of the base alert.
| 3 |
diff --git a/README.md b/README.md -## Hack OR Front-End Starter
+## Emergency Response Front-end
+
+[](https://travis-ci.org/hackoregon/emergency-response-frontend)
This is a starter kit for Hack Oregon front-end development using React + Redux.
This repo should help get started and keep the different projects aligned.
| 3 |
diff --git a/lib/natural/classifiers/classifier.js b/lib/natural/classifiers/classifier.js @@ -58,7 +58,7 @@ function addDocument(text, classification) {
}
if(typeof text === 'string')
- text = this.stemmer.tokenizeAndStem(text);
+ text = this.stemmer.tokenizeAndStem(text, this.keepStops);
if(text.length === 0) {
// ignore empty documents
@@ -82,7 +82,7 @@ function removeDocument(text, classification) {
, pos;
if (typeof text === 'string') {
- text = this.stemmer.tokenizeAndStem(text);
+ text = this.stemmer.tokenizeAndStem(text, this.keepStops);
}
for (var i = 0, ii = docs.length; i < ii; i++) {
@@ -107,7 +107,7 @@ function textToFeatures(observation) {
var features = [];
if(typeof observation === 'string')
- observation = this.stemmer.tokenizeAndStem(observation);
+ observation = this.stemmer.tokenizeAndStem(observation, this.keepStops);
for(var feature in this.features) {
if(observation.indexOf(feature) > -1)
@@ -180,7 +180,7 @@ function trainParallel(numThreads, callback) {
for (var i = this.lastAdded; i < totalDocs; i++) {
var observation = this.docs[i].text;
if (typeof observation === 'string')
- observation = this.stemmer.tokenizeAndStem(observation);
+ observation = this.stemmer.tokenizeAndStem(observation, this.keepStops);
obsDocs.push({
index: i,
observation: observation
@@ -289,7 +289,7 @@ function trainParallelBatches(options) {
for (var i = this.lastAdded; i < totalDocs; i++) {
var observation = this.docs[i].text;
if (typeof observation === 'string')
- observation = this.stemmer.tokenizeAndStem(observation);
+ observation = this.stemmer.tokenizeAndStem(observation, this.keepStops);
obsDocs.push({
index: i,
observation: observation
@@ -437,6 +437,10 @@ function load(filename, callback) {
});
}
+function setOptions(options){
+ this.keepStops = (options.keepStops) ? true : false;
+}
+
Classifier.prototype.addDocument = addDocument;
Classifier.prototype.removeDocument = removeDocument;
Classifier.prototype.train = train;
@@ -448,6 +452,7 @@ Classifier.prototype.classify = classify;
Classifier.prototype.textToFeatures = textToFeatures;
Classifier.prototype.save = save;
Classifier.prototype.getClassifications = getClassifications;
+Classifier.prototype.setOptions = setOptions;
Classifier.restore = restore;
Classifier.load = load;
| 11 |
diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js @@ -61,9 +61,9 @@ MapController.prototype.register = function(app) {
includeQuery: true
}),
respond,
- mapErrorMiddleware({
+ augmentError({
label: 'ANONYMOUS LAYERGROUP',
- augmentError: true
+ addContext: true
})
);
app.post(
@@ -78,9 +78,9 @@ MapController.prototype.register = function(app) {
includeQuery: true
}),
respond,
- mapErrorMiddleware({
+ augmentError({
label: 'ANONYMOUS LAYERGROUP',
- augmentError: true
+ addContext: true
})
);
app.get(
@@ -95,7 +95,7 @@ MapController.prototype.register = function(app) {
useTemplateHash: true
}),
respond,
- mapErrorMiddleware({
+ augmentError({
label: 'NAMED MAP LAYERGROUP'
})
);
@@ -111,7 +111,7 @@ MapController.prototype.register = function(app) {
useTemplateHash: true
}),
respond,
- mapErrorMiddleware({
+ augmentError({
label: 'NAMED MAP LAYERGROUP'
})
);
@@ -584,8 +584,8 @@ MapController.prototype.addWidgetsUrl = function(username, layergroup, mapConfig
}
};
-function mapErrorMiddleware (options) {
- const { augmentError = false, label = 'MAPS CONTROLLER' } = options;
+function augmentError (options) {
+ const { addContext = false, label = 'MAPS CONTROLLER' } = options;
return function mapError (err, req, res, next) {
const { mapconfig } = res.locals;
| 10 |
diff --git a/bin/data-migrations/v6/migration.js b/bin/data-migrations/v6/migration.js @@ -25,10 +25,10 @@ function csvProcessor(body) {
return body.replace(oldCsvTableRegExp, '``` csv$1\n$2\n```');
}
-function pagelinkProcessor(body) {
+function bracketlinkProcessor(body) {
// https://regex101.com/r/btZ4hc/1
- var oldpageLinkRegExp = /(?<!\[)\[{1}(\/.*?)\]{1}(?!\])/g; // Page Link old format
- return body.replace(oldpageLinkRegExp, '[[$1]]');
+ var oldBracketLinkRegExp = /(?<!\[)\[{1}(\/.*?)\]{1}(?!\])/g; // Page Link old format
+ return body.replace(oldBracketLinkRegExp, '[[$1]]');
}
// ===========================================
@@ -70,11 +70,11 @@ switch (migrationType) {
case 'csv':
oldFormatProcessors = [csvProcessor];
break;
- case 'pagelink':
- oldFormatProcessors = [pagelinkProcessor];
+ case 'bracketlink':
+ oldFormatProcessors = [bracketlinkProcessor];
break;
case 'v6':
- oldFormatProcessors = [drawioProcessor, plantumlProcessor, tsvProcessor, csvProcessor, pagelinkProcessor];
+ oldFormatProcessors = [drawioProcessor, plantumlProcessor, tsvProcessor, csvProcessor, bracketlinkProcessor];
break;
case undefined:
throw Error('env var MIGRATION_TYPE is required: document link');
| 10 |
diff --git a/scenes/SceneWallet.js b/scenes/SceneWallet.js @@ -174,7 +174,7 @@ export default class SceneWallet extends React.Component {
<div css={STYLES_SUBTEXT}>Filecoin address</div>
</div>
- <div style={{ marginTop: 24 }}>
+ <div>
<div css={STYLES_FOCUS}>
{selected.name}{" "}
{networkViewer.settings_cold_default_address === selected.addr ? (
| 2 |
diff --git a/app/scripts/PlotTypeChooser.jsx b/app/scripts/PlotTypeChooser.jsx @@ -79,13 +79,11 @@ export class PlotTypeChooser extends React.Component {
.sort((a,b) => { return a.type < b.type})
.map(x => {
let thumbnail = trackTypeToInfo[x.type].thumbnail;
- let blankLocation = "images/thumbnails/blank.png";
let imgTag = trackTypeToInfo[x.type].thumbnail ?
<div style={{display: 'inline-block', marginRight: 10, verticalAlign: "middle"}} dangerouslySetInnerHTML={{__html: thumbnail.outerHTML}} /> :
<div style={{display: 'inline-block', marginRight: 10, verticalAlign: "middle"}} >
<svg width={30} height={20} />
</div>
- console.log('imgTag:', imgTag);
return (<li
style= {{listStyle: 'none', paddingLeft: 5, paddingBottom: 0}}
className={ this.state.selectedPlotType.type == x.type ? 'plot-type-selected' : ''}
| 2 |
diff --git a/src/components/Cell.js b/src/components/Cell.js import React from 'react';
-const Cell = ({ value, onMouseOver, onClick, className, style, onMouseOut }) => console.log('width', style) || (
+const Cell = ({ value, onMouseOver, onClick, className, style, onMouseOut }) => (
<td
style={style}
onClick={onClick}
| 2 |
diff --git a/src/resources/views/fields/upload.blade.php b/src/resources/views/fields/upload.blade.php {{-- Show the file name and a "Clear" button on EDIT form. --}}
@if (!empty($field['value']))
<div class="well well-sm">
- @php
- $prefix = !empty($field['prefix']) ? $field['prefix'] : '';
- @endphp
@if (isset($field['disk']))
- <a target="_blank" href="{{ (asset(\Storage::disk($field['disk'])->url($prefix.$field['value']))) }}">
+ <a target="_blank" href="{{ (asset(\Storage::disk($field['disk'])->url(array_get($field, 'prefix', '').$field['value']))) }}">
@else
- <a target="_blank" href="{{ (asset($prefix.$field['value'])) }}">
+ <a target="_blank" href="{{ (asset(array_get($field, 'prefix', '').$field['value'])) }}">
@endif
{{ $field['value'] }}
</a>
| 14 |
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -12,7 +12,7 @@ where X.Y.Z is the semver of most recent plotly.js release.
## [2.0.0] -- UNRELEASED
### Added
- - Removed usage of function constructors from `basic`, `cartesian`, `finance`, `geo`, and `mapbox`
+ - CSP safety: refactored to avoid usage of function constructors from `basic`, `cartesian`, `finance`, `geo`, and `mapbox`
partial bundles and added tests to ensure that they will not again do so in the future [[#5359](https://github.com/plotly/plotly.js/pull/5359), [#5383](https://github.com/plotly/plotly.js/pull/5383), [#5387](https://github.com/plotly/plotly.js/pull/5387)],
with thanks to [Equinor](https://www.equinor.com) for sponsoring the related development!
- Add `strict` partial bundle [[#5413](https://github.com/plotly/plotly.js/pull/5413), [#5444](https://github.com/plotly/plotly.js/pull/5444)], which includes
| 3 |
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -10,6 +10,17 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master
where X.Y.Z is the semver of most recent plotly.js release.
+## [1.25.1] -- 2017-03-28
+
+### Fixed
+- Fix `restyle` for `scattergl` traces with array `marker.size` (bug introduced
+ in `1.25.0`) [#1521]
+- Fix `relayout` for `histogram2dcontour` traces [#1520]
+- Do not unnecessary mutate `parcoords` full trace objects when computing
+ line color and colorscale [#1509, #1508]
+- Do not unnecessary coerce trace opacity in `parcoords` traces [#1506]
+
+
## [1.25.0] -- 2017-03-20
### Added
| 3 |
diff --git a/package.json b/package.json "lodash-webpack-plugin": "^0.11.5",
"md5": "^2.2.1",
"mini-css-extract-plugin": "^0.4.5",
- "moment": "^2.24.0",
"natives": "^1.1.6",
"node-sass": "^4.11.0",
"polyfill-library": "^3.31.1",
| 2 |
diff --git a/app/config/collections.php b/app/config/collections.php @@ -1751,9 +1751,9 @@ $collections = [
'$id' => '_key_search',
'type' => Database::INDEX_FULLTEXT,
'attributes' => ['search'],
- 'lengths' => [],
- 'orders' => [],
- ],
+ 'lengths' => [2048],
+ 'orders' => [Database::ORDER_ASC],
+ ]
],
],
| 13 |
diff --git a/aleph/logic/gql.py b/aleph/logic/gql.py @@ -21,62 +21,62 @@ class GraphQuery(object):
def __init__(self, graph, authz=None):
self.graph = graph
self.authz = authz
- self.clauses = []
+ self.patterns = []
@property
- def filter(self):
+ def filters(self):
+ filters = []
if self.authz:
- return authz_query(self.authz)
+ filters.append(authz_query(self.authz))
+ return filters
def node(self, node, limit=0, count=False):
- clause = QueryClause(self, node, None, limit, count)
- self.clauses.append(clause)
+ pattern = QueryPattern(self, node, None, limit, count)
+ self.patterns.append(pattern)
def edge(self, node, prop, limit=0, count=False):
- clause = QueryClause(self, node, prop, limit, count)
- self.clauses.append(clause)
+ pattern = QueryPattern(self, node, prop, limit, count)
+ self.patterns.append(pattern)
- def _group_clauses(self):
- "Group clauses into buckets representing one ES query each."
+ def _group_patterns(self):
+ "Group patterns into buckets representing one ES query each."
grouped = {}
- for clause in self.clauses:
- group = clause.index
- if clause.limit > 0:
- group = (clause.index, clause.id)
+ for pattern in self.patterns:
+ group = pattern.index
+ if pattern.limit > 0:
+ group = (pattern.index, pattern.id)
grouped.setdefault(group, [])
- grouped[group].append(clause)
+ grouped[group].append(pattern)
return grouped.values()
def compile(self):
- "Generate a sequence of ES queries representing the clauses."
+ "Generate a sequence of ES queries representing the patterns."
queries = []
- for clauses in self._group_clauses():
- query = {'filter': []}
- if self.filter:
- query['filter'].append(self.filter)
- if len(clauses) == 1:
- query['filter'].append(clauses[0].filter)
+ for patterns in self._group_patterns():
+ query = {'filter': self.filters}
+ if len(patterns) == 1:
+ query['filter'].append(patterns[0].filter)
else:
query['minimum_should_match'] = 1
query['should'] = []
- for clause in clauses:
- query['should'].append(clause.filter)
+ for pattern in patterns:
+ query['should'].append(pattern.filter)
query = {
- 'size': clauses[0].limit,
+ 'size': patterns[0].limit,
'query': {'bool': query},
'_source': _source_spec(PROXY_INCLUDES, None)
}
counters = {}
- for clause in clauses:
- if clause.count:
- counters[clause.id] = clause.filter
+ for pattern in patterns:
+ if pattern.count:
+ counters[pattern.id] = pattern.filter
if len(counters):
query['aggs'] = {
'counters': {'filters': {'filters': counters}}
}
- index = clauses[0].index
- queries.append((clauses, index, query))
+ index = patterns[0].index
+ queries.append((patterns, index, query))
return queries
def execute(self):
@@ -90,18 +90,18 @@ class GraphQuery(object):
body.append(query)
results = es.msearch(body=body)
responses = results.get('responses', [])
- for ((clauses, _, _), result) in zip(queries, responses):
+ for ((patterns, _, _), result) in zip(queries, responses):
hits = result.get('hits', {}).get('hits', [])
results = [unpack_result(r) for r in hits]
aggs = result.get('aggregations', {}).get('counters', {})
counters = aggs.get('buckets', {})
- for clause in clauses:
- count = counters.get(clause.id, {}).get('doc_count')
- clause.apply(count, results)
- return self.clauses
+ for pattern in patterns:
+ count = counters.get(pattern.id, {}).get('doc_count')
+ pattern.apply(count, results)
+ return self.patterns
-class QueryClause(object):
+class QueryPattern(object):
def __init__(self, query, node, prop=None, limit=0, count=False):
self.graph = query.graph
@@ -141,6 +141,7 @@ def demo():
}
})
graph = Graph(edge_types=registry.matchable)
+ proxy_node = Node.from_proxy(proxy)
# UC 1: Tags query
query = GraphQuery(graph)
@@ -158,8 +159,7 @@ def demo():
for prop in proxy.schema.properties.values():
if not prop.stub:
continue
- node = Node(registry.entity, proxy.id, proxy=proxy)
- query.edge(node, prop.reverse, count=True)
+ query.edge(proxy_node, prop.reverse, count=True)
for res in query.execute():
print(res.prop, res.prop.schema, res.count)
@@ -168,8 +168,7 @@ def demo():
for prop in proxy.schema.properties.values():
if not prop.stub:
continue
- node = Node(registry.entity, proxy.id, proxy=proxy)
- query.edge(node, prop.reverse, limit=200, count=False)
+ query.edge(proxy_node, prop.reverse, limit=200, count=True)
query.execute()
graph.resolve()
| 10 |
diff --git a/package.json b/package.json "d3-interpolate": "1.1.2",
"jquery": "2.1.4",
"moment": "2.10.6",
- "perfect-scrollbar": "git://github.com/nobuti/perfect-scrollbar.git#autoupdate",
+ "perfect-scrollbar": "git://github.com/CartoDB/perfect-scrollbar.git#master",
"tinycolor2": "1.4.1",
"underscore": "1.8.3",
"urijs": "1.17.1"
| 3 |
diff --git a/src/IoHandler.jsx b/src/IoHandler.jsx @@ -4,7 +4,7 @@ import ioManager from '../io-manager.js';
// import * as codeAi from '../ai/code/code-ai.js';
// import metaversefile from 'metaversefile';
-const types = ['keyup', 'click', 'mousedown', 'mouseup', 'mousemove', 'mouseenter', 'mouseleave', 'paste'];
+const types = ['keydown', 'keypress', 'keyup', 'click', 'mousedown', 'mouseup', 'mousemove', 'mouseenter', 'mouseleave', 'paste'];
const ioEventHandlers = {};
for (const type of types.concat([''])) {
ioEventHandlers[type] = [];
| 0 |
diff --git a/common/components/controllers/LogInController.jsx b/common/components/controllers/LogInController.jsx @@ -24,7 +24,7 @@ class LogInController extends React.Component<Props, State> {
constructor(props): void {
super(props);
const args: Dictionary<string> = url.arguments();
- const prevPage: string = args["prev"];
+ const prevPage: string = props.prevPage || args["prev"];
const prevPageArgs: Dictionary<string> = _.omit(args, "prev");
this.state = {
username: "",
| 12 |
diff --git a/sparta_main.go b/sparta_main.go @@ -34,20 +34,6 @@ func isRunningInAWS() bool {
return len(os.Getenv("AWS_LAMBDA_FUNCTION_NAME")) != 0
}
-// func applyLoggerHooks(serviceName string, workflowHooks *WorkflowHooks, logger *logrus.Logger) error {
-// // Anything to customize ?
-// if workflowHooks != nil && workflowHooks.RuntimeLoggerHook != nil {
-// loggerHookErr := workflowHooks.RuntimeLoggerHook(nil,
-// serviceName,
-// logger)
-// if loggerHookErr != nil {
-// logger.Errorf("Failed to hook logger: %s", loggerHookErr.Error())
-// return errors.Wrapf(loggerHookErr, "Attempting to customize logger")
-// }
-// logger.Info("Registered runtime logger hook")
-// }
-// return nil
-// }
func displayPrettyHeader(headerDivider string, disableColors bool, logger *logrus.Logger) {
logger.Info(headerDivider)
red := func(inputText string) string {
| 2 |
diff --git a/src/custom-resources.js b/src/custom-resources.js @@ -214,22 +214,29 @@ async function init(){
continue;
let regex = properties[property];
+ let pattern = false;
+ let nocase = false;
if(regex.startsWith('ipattern:')){
- regex = new RE2(mm.makeRe(regex.substring(9), { nocase: true }));
+ regex = regex.substring(9);
+ pattern = true;
+ nocase = true;
}else if(regex.startsWith('pattern:')){
- regex = new RE2(mm.makeRe(regex.substring(9)));
+ regex = regex.substring(9);
+ pattern = true;
}else if(regex.startsWith('iregex:')){
- regex = new RE2(regex.substring(7), 'i');
+ regex = new RegExp(regex.substring(7), 'i');
}else if(regex.startsWith('regex:')){
- regex = new RE2(regex.substring(6));
+ regex = new RegExp(regex.substring(6));
}else{
- regex = new RE2(escapeRegExp(regex));
+ regex = new RegExp(escapeRegExp(regex));
}
texture.match.push({
value: property.substring(4),
- regex
+ regex,
+ pattern,
+ nocase
});
}
@@ -399,7 +406,7 @@ module.exports = {
let matches = 0;
for(const match of texture.match){
- let {value, regex} = match;
+ let {value, regex, pattern, nocase} = match;
if(value.endsWith('.*'))
value = value.substring(0, value.length - 2);
@@ -413,8 +420,13 @@ module.exports = {
matchValues = [matchValues];
for(const matchValue of matchValues){
+ if(pattern){
+ if(!mm.isMatch(matchValue.toString().replace(removeFormatting, ''), regex, { nocase }))
+ continue;
+ }else{
if(!regex.test(matchValue.toString().replace(removeFormatting, '')))
continue;
+ }
matches++;
}
| 7 |
diff --git a/web/app/components/Account/AccountLeftPanel.jsx b/web/app/components/Account/AccountLeftPanel.jsx @@ -107,7 +107,7 @@ class AccountLeftPanel extends React.Component {
</li>
</ul>
{this.state.showAdvanced ? (<ul className="account-left-menu">
- <li><Link to={`/account/${account_name}/assets/`} activeClassName="active"><Translate content="explorer.assets.title"/></Link></li>
+ <li><Link to={`/account/${account_name}/assets/`} activeClassName="active"><Translate content="account.user_issued_assets.issued_assets"/></Link></li>
<li><Link to={`/account/${account_name}/permissions/`} activeClassName="active"><Translate content="account.permissions"/></Link></li>
<li><Link to={`/account/${account_name}/whitelist/`} activeClassName="active"><Translate content="account.whitelist.title"/></Link></li>
{isMyAccount ? <li><Link to={`/account/${account_name}/vesting/`} activeClassName="active"><Translate content="account.vesting.title"/></Link></li> : null}
| 10 |
diff --git a/bin/oref0-pump-loop.sh b/bin/oref0-pump-loop.sh @@ -140,13 +140,13 @@ function smb_enact_temp {
function smb_verify_enacted {
# Read the currently running temp and
- # verify rate matches and duration is no shorter than 5m less than smb-suggested.json
+ # verify rate matches (within 0.03U/hr) and duration is no shorter than 5m less than smb-suggested.json
rm -rf monitor/temp_basal.json
( echo -n Temp refresh \
&& ( openaps report invoke monitor/temp_basal.json || openaps report invoke monitor/temp_basal.json ) \
2>&1 >/dev/null | tail -1 && echo -n "ed: " \
) && echo -n "monitor/temp_basal.json: " && cat monitor/temp_basal.json | jq -C -c . \
- && jq --slurp --exit-status 'if .[1].rate then (.[0].rate == .[1].rate and .[0].duration > .[1].duration - 5) else true end' monitor/temp_basal.json enact/smb-suggested.json > /dev/null
+ && jq --slurp --exit-status 'if .[1].rate then (.[0].rate > .[1].rate - 0.03 and .[0].rate < .[1].rate + 0.03 and .[0].duration > .[1].duration - 5) else true end' monitor/temp_basal.json enact/smb-suggested.json > /dev/null
}
function smb_verify_reservoir {
| 11 |
diff --git a/src/containers/LeftPanel/TestMenu/EndpointTestMenu.jsx b/src/containers/LeftPanel/TestMenu/EndpointTestMenu.jsx @@ -16,6 +16,7 @@ const EndpointTestMenu = ({ dispatchToEndpointTestCase }) => {
};
const handleAddEndpoint = e => {
+ console.log('HIT HANDLEADDENDPOINT')
dispatchToEndpointTestCase(addEndpoint());
};
@@ -23,7 +24,7 @@ const EndpointTestMenu = ({ dispatchToEndpointTestCase }) => {
<div id='test'>
<div id={styles.testMenu}>
<div id={styles.left}>
- <button onClick={openEndpointModal}>New Redux Test +</button>
+ <button onClick={openEndpointModal}>New Test +</button>
<EndpointTestModal
isEndpointModalOpen={isEndpointModalOpen}
closeEndpointModal={closeEndpointModal}
| 3 |
diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx @@ -96,6 +96,7 @@ const Editor = createClass({
},
handleViewChange : function(newView){
+ this.props.setMoveArrows(newView === 'text');
this.setState({
view : newView
}, this.updateEditorSize); //TODO: not sure if updateeditorsize needed
@@ -232,7 +233,6 @@ const Editor = createClass({
renderEditor : function(){
if(this.isText()){
- this.props.setMoveArrows(true);
return <>
<CodeEditor key='codeEditor'
ref='codeEditor'
@@ -244,7 +244,6 @@ const Editor = createClass({
</>;
}
if(this.isStyle()){
- this.props.setMoveArrows(false);
return <>
<CodeEditor key='codeEditor'
ref='codeEditor'
@@ -257,7 +256,6 @@ const Editor = createClass({
</>;
}
if(this.isMeta()){
- this.props.setMoveArrows(false);
return <>
<CodeEditor key='codeEditor'
view={this.state.view}
| 5 |
diff --git a/contracts/governance/Staking/Staking.sol b/contracts/governance/Staking/Staking.sol @@ -374,10 +374,10 @@ contract Staking is IStaking, WeightedStaking, ApprovalReceiver {
bool isGovernance
) internal {
if (msg.sender.isContract()) {
- uint256 previousLock = until.add(TWO_WEEKS);
- uint96 stake = _getPriorUserStakeByDate(msg.sender, previousLock, block.number - 1);
+ uint256 nextLock = until.add(TWO_WEEKS);
+ uint96 stake = _getPriorUserStakeByDate(msg.sender, nextLock, block.number - 1);
if (stake > 1) {
- _withdraw(stake, previousLock, receiver, isGovernance);
+ _withdraw(stake, nextLock, receiver, isGovernance);
}
}
}
@@ -563,8 +563,8 @@ contract Staking is IStaking, WeightedStaking, ApprovalReceiver {
uint256 lockedTS
) internal {
if (msg.sender.isContract()) {
- uint256 previousLock = lockedTS.add(TWO_WEEKS);
- _delegate(delegator, delegatee, previousLock);
+ uint256 nextLock = lockedTS.add(TWO_WEEKS);
+ _delegate(delegator, delegatee, nextLock);
}
}
| 10 |
diff --git a/CHANGES.md b/CHANGES.md - Fixed error with `WallGeometry` when there were adjacent positions with very close values. [#8952](https://github.com/CesiumGS/cesium/pull/8952)
- Fixed artifact for skinned model when log depth is enabled. [#6447](https://github.com/CesiumGS/cesium/issues/6447)
- Fixed a bug where certain rhumb arc polylines would lead to a crash. [#8787](https://github.com/CesiumGS/cesium/pull/8787)
-- Fixed handling of Label's backgroundColor and backgroundPadding option [#8949](https://github.com/CesiumGS/cesium/8949)
+- Fixed handling of Label's backgroundColor and backgroundPadding option [#8949](https://github.com/CesiumGS/cesium/pull/8949)
- Fixed several bugs when rendering CesiumJS in a WebGL 2 context. [#797](https://github.com/CesiumGS/cesium/issues/797)
- Fixed a bug where switching from perspective to orthographic caused triangles to overlap each other incorrectly. [#8346](https://github.com/CesiumGS/cesium/issues/8346)
- Fixed a bug where switching to orthographic camera on the first frame caused the zoom level to be incorrect. [#8853](https://github.com/CesiumGS/cesium/pull/8853)
| 1 |
diff --git a/articles/tokens/index.html b/articles/tokens/index.html @@ -44,6 +44,9 @@ description: Learn about the numerous types of tokens referenced in Auth0 docume
<li>
<i class="icon icon-budicon-695"></i><a href="/scopes">Scopes</a>
</li>
+ <li>
+ <i class="icon icon-budicon-695"></i><a href="/why-use-access-tokens-to-secure-apis">Why you should always use access tokens to secure an API</a>
+ </li>
<li>
<i class="icon icon-budicon-695"></i><a href="/libraries/lock#implementing-lock">Get a token using Lock</a>
</li>
@@ -70,6 +73,9 @@ description: Learn about the numerous types of tokens referenced in Auth0 docume
The Access Token, commonly referred to as <code>access_token</code>, is a credential that can be used by a client to access an API. Auth0 uses access tokens to protect access to the Auth0 Management API.
</p>
<ul>
+ <li>
+ <i class="icon icon-budicon-695"></i><a href="/why-use-access-tokens-to-secure-apis">Why you should always use access tokens to secure an API</a>
+ </li>
<li>
<i class="icon icon-budicon-695"></i><a href="/api/authentication#get-user-info">Retrieve the full user profile with an access token</a>
</li>
| 0 |
diff --git a/server/lib/__tests__/custom_watcher_handler.js b/server/lib/__tests__/custom_watcher_handler.js @@ -46,7 +46,7 @@ describe('CustomWatcherHandler', function () {
time: {
range: {
'@timestamp': {}
- },
+ }
}
}
}
@@ -65,26 +65,27 @@ describe('CustomWatcherHandler', function () {
getCluster: () => void 0
},
saved_objects_api: {
- getServerCredentials: () => void 0
+ getServerCredentials: () => ({})
}
},
savedObjectsClientFactory: () => ({
- get: (_, templateName) => {
- return Promise.resolve({
+ find: ({ search }) => Promise.resolve({
+ saved_objects: [{
attributes: {
- scriptSource: scriptSources[templateName.replace('script:', '')]
- }
- });
+ title: search,
+ scriptSource: scriptSources[search]
}
+ }]
+ })
})
};
const config = {
es: {
- watcher_type: 'sentinl-watcher',
+ watcher_type: 'sentinl-watcher'
},
settings: {
authentication: {}
- },
+ }
};
const client = {
search: () => void 0
| 3 |
diff --git a/docs/guides/01-introduction.md b/docs/guides/01-introduction.md @@ -56,7 +56,7 @@ The easiest way to include Airship is through our CDN, adding the tags in the he
<aside class="as-sidebar as-sidebar--right"></aside>
</div>
- <!-- Mapbox basemap -->
+ <!-- CARTO basemap -->
<script>
const map = new mapboxgl.Map({
container: 'map',
| 10 |
diff --git a/packages/light-react/src/Settings/Settings.js b/packages/light-react/src/Settings/Settings.js @@ -15,7 +15,7 @@ import Health from '../Health';
import NewTokenItem from './NewTokenItem';
@light({
- chainName: chainName$
+ chainName: () => chainName$({ withoutLoading: true })
})
@inject('tokensStore')
@observer
@@ -73,7 +73,8 @@ class Settings extends Component {
try {
db = await import(`../assets/tokens/${this.props.chainName}.json`);
} catch (e) {
- db = await import(`../assets/tokens/foundation.json`);
+ this.setState({ db: [], dbMap: {} });
+ return;
}
// We create a address=>token mapping here
| 1 |
diff --git a/NotAnAnswerFlagQueueHelper.user.js b/NotAnAnswerFlagQueueHelper.user.js // @description Inserts several sort options for the NAA / VLQ / Review LQ Disputed queues
// @homepage https://github.com/samliew/SO-mod-userscripts
// @author @samliew
-// @version 2.6
+// @version 2.6.1
//
// @include */admin/dashboard?flagtype=postother*
// @include */admin/dashboard?flagtype=postlowquality*
input.js-helpful-purge {
border-color: red !important;
}
+.star-off, .star-on {
+ display: none;
+}
</style>
`;
$('body').append(styles);
| 2 |
diff --git a/bin/authentication-cli.php b/bin/authentication-cli.php @@ -48,6 +48,6 @@ class Authentication_CLI_Command extends WP_CLI_Command {
);
$authentication->disconnect();
- WP_CLI::success( sprintf( 'Site Kit revoke token from user ID: %d success', $user_id ) );
+ WP_CLI::success( sprintf( 'User with ID %d successfully disconnected.', $user_id ) );
}
}
| 7 |
diff --git a/articles/clients/index.md b/articles/clients/index.md @@ -71,6 +71,20 @@ While the Client ID is considered public information, the Client Secret **must b
- **Use Auth0 instead of the IdP to do Single Sign On**: If enabled, this setting prevents Auth0 from redirecting authenticated users with valid sessions to the identity provider (such as Facebook, ADFS, and so on).
+## How to Delete a Client
+
+Navigate to the [Client Settings](${manage_url}/#/clients/${account.clientId}/settings) and scroll to the end of the page. Under the *Danger Zone* section you can find the **Delete Client** button. This operation cannot be undone.
+
+Once you click on the button a pop-up window will ask you to confirm the action. Click **Yes, delete client** to permanently remove the client.
+
+**Note**: You can also delete a client using the [DELETE /api/v2/clients/{id} endpoint](/api/management/v2#!/Clients/delete_clients_by_id) of the Management API.
+
+## Client Auditing
+
+Auth0 stores log data of both actions taken in the dashboard by the administrators, as well as authentications made by your users. The logs include many of the actions performed by the user like failing to login to a client or requesting a password change. For more details refer to: [Logs](/logs).
+
+If you use a third-party application for log management, like Sumo Logic, Splunk or Loggly, you can use Auth0 Extensions to export your logs there. For details on the available extensions and how to configure them refer to: [Extensions](/extensions).
+
## Next Steps
Once you have configured your Client, some common next steps to take are:
@@ -88,17 +102,3 @@ Once you have configured your Client, some common next steps to take are:
- The [Authentication API](/api/authentication) handles all the primary identity related functions (login, logout, get user profile, and so forth). Most users consume this API through our [Quickstarts](/quickstarts), the [Auth0.js library](/libraries/auth0js) or the [Lock widget](/libraries/lock). However, if you are building all of your authentication UI manually you will have to interact with this API directly.
- The [Management API](/api/management/v2) can be used to automate various tasks in Auth0 such as creating users.
-
-## How to Delete a Client
-
-Navigate to the [Client Settings](${manage_url}/#/clients/${account.clientId}/settings) and scroll to the end of the page. Under the *Danger Zone* section you can find the **Delete Client** button. This operation cannot be undone.
-
-Once you click on the button a pop-up window will ask you to confirm the action. Click **Yes, delete client** to permanently remove the client.
-
-**Note**: You can also delete a client using the [DELETE /api/v2/clients/{id} endpoint](/api/management/v2#!/Clients/delete_clients_by_id) of the Management API.
-
-## Client Auditing
-
-Auth0 stores log data of both actions taken in the dashboard by the administrators, as well as authentications made by your users. The logs include many of the actions performed by the user like failing to login to a client or requesting a password change. For more details refer to: [Logs](/logs).
-
-If you use a third-party application for log management, like Sumo Logic, Splunk or Loggly, you can use Auth0 Extensions to export your logs there. For details on the available extensions and how to configure them refer to: [Extensions](/extensions).
| 5 |
diff --git a/README.md b/README.md @@ -57,7 +57,7 @@ $ make test
[travis-url]: https://travis-ci.org/recurly/recurly-js/builds
[travis-image]: https://img.shields.io/travis/recurly/recurly-js/master.svg?style=flat-square
-[docs]: https://docs.recurly.com/js
+[docs]: https://developers.recurly.com/pages/recurly-js.html
[examples]: https://github.com/recurly/recurly-js-examples
[component]: http://github.com/component/component
[license]: LICENSE.md
| 3 |
diff --git a/app.js b/app.js @@ -13,7 +13,7 @@ var express = require("express"),
LocalStrategy = require("passport-local"),
passportSocketIo = require("passport.socketio"),
cookieParser = require('cookie-parser'),
- flash = require("connect-flash")
+ flash = require("connect-flash");
var port = process.env.PORT || 80;
var dbLoc = process.env.DATABASEURL || "mongodb://localhost/TheNewResistanceUsers";
| 1 |
diff --git a/app/models/user.rb b/app/models/user.rb @@ -501,6 +501,8 @@ class User < Sequel::Model
destroy_shared_with
assign_search_tweets_to_organization_owner
+
+ ClientApplication.where(user_id: id).each(&:destroy)
rescue StandardError => exception
error_happened = true
CartoDB::StdoutLogger.info "Error destroying user #{username}. #{exception.message}\n#{exception.backtrace}"
| 2 |
diff --git a/.github/workflows/test-ui.yml b/.github/workflows/test-ui.yml @@ -45,8 +45,6 @@ jobs:
- name: Run Tests
run: |
cd test
- sudo apt-get install libcap2-bin
- sudo setcap cap_net_bind_service=+ep `readlink -f \`which node\``
- sudo npm run test:ui
+ PORT=3000 HTTP_ONLY=true URL=http://localhost:3000 npm run test:ui
echo "Exited with '$?'"
| 0 |
diff --git a/_data/conferences.yml b/_data/conferences.yml year: 2022
id: siggraph22
link: https://s2022.siggraph.org/
- abstract_deadline: '2022-01-27 22:00:00'
- deadline: '2022-01-28 22:00:00'
+ abstract_deadline: '2022-01-26 22:00:00'
+ deadline: '2022-01-27 22:00:00'
timezone: UTC
date: August 8-11, 2022
place: Vancouver
sub: CG
- note: '<b>NOTE</b>: Mandatory abstract deadline on Jan 27, 2022. More info <a href=''https://s2022.siggraph.org/program/technical-papers/''>here</a>.'
- paperslink: https://s2022.siggraph.org/full-program/
+ note: '<b>NOTE</b>: Mandatory abstract deadline on Jan 26, 2022. More info <a href=''https://s2022.siggraph.org/program/technical-papers/''>here</a>.'
- title: ACL
hindex: 157
| 3 |
diff --git a/context/AuthContext.js b/context/AuthContext.js @@ -33,7 +33,6 @@ export const AuthProvider = ({ children }) => {
const fetchedToken = tokenData && tokenData.accessToken;
if (fetchedToken) {
setAccessToken(fetchedToken);
- sessionStorage.setItem("currentToken", fetchedToken);
setApolloToken(fetchedToken);
}
}, [tokenData]);
| 2 |
diff --git a/src/Grid/Grid.d.ts b/src/Grid/Grid.d.ts @@ -3,7 +3,7 @@ import { Omit, StyledComponent, StyledComponentProps } from '..';
import { HiddenProps } from '../Hidden/Hidden';
import { Breakpoint } from '../styles/createBreakpoints';
-export type GridItemsAlignment = 'flex-start' | 'center' | 'flex-end' | 'stretch';
+export type GridItemsAlignment = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
export type GridContentAlignment = 'stretch' | 'center' | 'flex-start' | 'flex-end' |'space-between' | 'space-around';
| 0 |
diff --git a/src/character/import.js b/src/character/import.js @@ -205,14 +205,23 @@ async function getCharacterData(characterId) {
.then((data) => {
// construct the expected { character: {...} } object
let ddb = data.ddb.character === undefined ? { character: data.ddb } : data.ddb;
+ try {
const character = parseJson(ddb);
data['character'] = character;
return data;
+ } catch (error) {
+ const debug = game.settings.get("ddb-importer", "log-level");
+ if (debug == "DEBUG") {
+ download(JSON.stringify(data), `${characterId}-raw.json`, 'application/json');
+ }
+ throw (error);
+ }
})
.then((data) => resolve(data))
.catch((error) => {
logger.error("JSON Fetch and Parse Error");
logger.error(error);
+ logger.error(error.stack);
reject(error);
});
});
| 7 |
diff --git a/components/core/DataView.js b/components/core/DataView.js @@ -262,7 +262,7 @@ export default class DataView extends React.Component {
};
_handleDeleteFiles = async (e) => {
- const message = `Are you sure you want to delete these ${numChecked} files? They will be deleted from your slates as well`;
+ const message = `Are you sure you want to delete these files? They will be deleted from your slates as well`;
if (!window.confirm(message)) {
return;
}
| 1 |
diff --git a/apps/lcars/lcars.app.js b/apps/lcars/lcars.app.js @@ -20,7 +20,7 @@ let cOrange = "#FF9900";
let cPurple = "#FF00DC";
let cWhite = "#FFFFFF";
let cBlack = "#000000";
-let cGrey = "#9E9E9E";
+let cGrey = "#424242";
/*
* Global lcars variables
@@ -143,7 +143,7 @@ function printData(key, y, c){
} else if (key == "HUMIDITY"){
text = "HUM";
var weather = getWeather();
- value = parseInt(weather.hum) + "%";
+ value = weather.hum + "%";
} else if(key == "CORET"){
value = locale.temp(parseInt(E.getTemperature()));
@@ -242,9 +242,14 @@ function drawPosition0(){
// The last line is a battery indicator too
var bat = E.getBattery() / 100.0;
- var batX2 = parseInt((172 - 35) * bat + 35);
- drawHorizontalBgLine(cOrange, 35, batX2-5, 171, 5);
- drawHorizontalBgLine(cGrey, batX2+5, 172, 171, 5);
+ var batStart = 19;
+ var batWidth = 172 - batStart;
+ var batX2 = parseInt(batWidth * bat + batStart);
+ drawHorizontalBgLine(cOrange, batStart, batX2, 171, 5);
+ drawHorizontalBgLine(cGrey, batX2, 172, 171, 5);
+ for(var i=0; i+batStart<=172; i+=parseInt(batWidth/4)){
+ drawHorizontalBgLine(cBlack, batStart+i, batStart+i+3, 168, 8)
+ }
// Draw Infos
drawInfo();
| 7 |
diff --git a/devices.js b/devices.js @@ -232,7 +232,7 @@ const generic = {
switch: {
exposes: [exposes.switch()],
supports: 'on/off',
- fromZigbee: [fz.on_off],
+ fromZigbee: [fz.on_off, fz.ignore_basic_report],
toZigbee: [tz.on_off],
},
light_onoff_brightness: {
| 8 |
diff --git a/articles/auth0-hooks/extensibility-points/client-credentials-exchange.md b/articles/auth0-hooks/extensibility-points/client-credentials-exchange.md @@ -6,6 +6,10 @@ description: The client-credentials-exchange extensibility point for use with Au
The `client-credentials-exchange` extensibility point allows you to change the scopes and add custom claims to the tokens issued by the Auth0 API's `POST /oauth/token` endpoint.
+:::panel-info
+Please see [Calling APIs from a Service](/api-auth/grant/client-credentials) for more information on the Client Credentials Grant.
+:::
+
## Starter Code
```js
| 0 |
diff --git a/web/src/ColorInput.js b/web/src/ColorInput.js @@ -16,6 +16,10 @@ export default ({ className, style, colorKey, help }) => {
getActiveContrastFromBackground,
} = useContext(ThemeContext);
const debouncedLogEvent = useCallback(debounce(window.__ssa__log, 1000), []);
+ const debouncedSetActiveRawColor = useCallback(
+ debounce(setActiveRawColor, 100),
+ [setActiveRawColor],
+ );
const contrast = colorKey === 'shade0'
? null
: numeral(getActiveContrastFromBackground(colorKey)).format('0.00');
@@ -68,7 +72,7 @@ export default ({ className, style, colorKey, help }) => {
className={ styles.colorInput }
value={ getActiveColorOrFallback([colorKey], colorKey === 'shade0') }
onChange={ evt => {
- setActiveRawColor(colorKey, evt.target.value);
+ debouncedSetActiveRawColor(colorKey, evt.target.value);
debouncedLogEvent('change raw color', { inputType: 'color' });
} }
tabIndex="-1"
| 7 |
diff --git a/src/data.js b/src/data.js @@ -27,7 +27,7 @@ function getTypeAndName(name) {
const matches = name.match( /\d{1,2}(\.\d{1,2})?x\d*(\s?mm)?R?/ );
return {
- type: matches[ 0 ],
+ type: matches[ 0 ].replace( /(\d)mm/g, '$1 mm'),
name: name.replace( `${matches[ 0 ]}`, '' ).trim(),
};
}
| 7 |
diff --git a/package.json b/package.json "start-image_viewer": "node devtools/image_viewer/server.js",
"start": "npm run start-test_dashboard",
"baseline": "node tasks/baseline.js",
+ "noci-baseline": "npm run cibuild && ./tasks/noci_test.sh image && git checkout dist",
"preversion": "check-node-version --node 12 --npm 6.14 && npm-link-check && npm ls --prod",
"version": "npm run build && npm run no-bad-char && git add -A dist build src/version.js",
"postversion": "node -e \"console.log('Version bumped and committed. If ok, run: git push && git push --tags')\"",
| 0 |
diff --git a/src/struct/CommandHandler.js b/src/struct/CommandHandler.js @@ -478,59 +478,65 @@ class CommandHandler extends AkairoHandler {
* @returns {Promise<void>}
*/
_handleTriggers(message, edited) {
- const matchedCommands = this.modules.filter(c => (edited ? c.editable : true) && c.enabled && c.trigger(message));
+ const matchedCommands = [];
+
+ for (const command of this.modules.values()) {
+ if ((edited ? command.editable : true) && command.enabled) {
+ const regex = command.trigger(message);
+ if (regex) matchedCommands.push({ command, regex });
+ }
+ }
+
const triggered = [];
- for (const c of matchedCommands.values()) {
- const regex = c.trigger(message);
- const match = message.content.match(regex);
+ for (const entry of matchedCommands) {
+ const match = message.content.match(entry.regex);
+ if (!match) continue;
- if (match) {
const groups = [];
- if (regex.global) {
+ if (entry.regex.global) {
let group;
- while ((group = regex.exec(message.content)) != null) {
+ while ((group = entry.regex.exec(message.content)) != null) {
groups.push(group);
}
}
- triggered.push([c, match, groups]);
- }
+ triggered.push({ command: entry.command, match, groups });
}
- return Promise.all(triggered.map(c => {
- const onCooldown = this._handleCooldowns(message, c[0]);
+ return Promise.all(triggered.map(entry => {
+ const onCooldown = this._handleCooldowns(message, entry.command);
if (onCooldown) return undefined;
- this.emit(CommandHandlerEvents.COMMAND_STARTED, message, c[0]);
- const end = Promise.resolve(c[0].exec(message, c[1], c[2], edited));
+ this.emit(CommandHandlerEvents.COMMAND_STARTED, message, entry.command);
+ const end = Promise.resolve(entry.command.exec(message, entry.match, entry.groups, edited));
return end.then(() => {
- this.emit(CommandHandlerEvents.COMMAND_FINISHED, message, c[0]);
+ this.emit(CommandHandlerEvents.COMMAND_FINISHED, message, entry.command);
}).catch(err => {
- this._handleError(err, message, c[0]);
+ this._handleError(err, message, entry.command);
});
})).then(() => {
- const trueCommands = this.modules.filter(c => (edited ? c.editable : true) && c.enabled && c.condition(message));
+ const trueCommands = this.modules.filter(command => (edited ? command.editable : true) && command.enabled && command.condition(message));
if (!trueCommands.size) {
this.emit(CommandHandlerEvents.MESSAGE_INVALID, message);
return undefined;
}
- return Promise.all(trueCommands.map(c => {
- const onCooldown = this._handleCooldowns(message, c);
+ return Promise.all(trueCommands.map(command => {
+ const onCooldown = this._handleCooldowns(message, command);
if (onCooldown) return undefined;
- this.emit(CommandHandlerEvents.COMMAND_STARTED, message, c);
- const end = Promise.resolve(c.exec(message, edited));
+ this.emit(CommandHandlerEvents.COMMAND_STARTED, message, command);
+ const end = Promise.resolve(command.exec(message, edited));
return end.then(() => {
- this.emit(CommandHandlerEvents.COMMAND_FINISHED, message, c);
+ this.emit(CommandHandlerEvents.COMMAND_FINISHED, message, command);
}).catch(err => {
- this._handleError(err, message, c);
+ this._handleError(err, message, command);
});
}));
});
| 7 |
diff --git a/src/v2/cookbook/index.md b/src/v2/cookbook/index.md @@ -38,7 +38,9 @@ Recipes should generally:
> * Explain the pros and cons of your strategy, including when it is and isn't appropriate
> * Mention alternative solutions, if relevant, but leave in-depth explorations to a separate recipe
-### Simple Example
+We request that you follow the template below. We understand, however, that there are times when you may necessarily need to deviate for clarity or flow. Either way, all recipes should at some point discuss the nuance of the choice made using this pattern, preferably in the form of the alternative patterns section.
+
+### Base Example
_required_
| 4 |
diff --git a/test/api/parser.test.js b/test/api/parser.test.js @@ -5,7 +5,7 @@ var sinon = require('sinon')
var mock = require('../mock')
var Environment = require('../../dist/environment').default
var Parser = require('../../dist/parser').default
-var source = require('vinyl-source-stream');
+var source = require('vinyl-source-stream')
describe('#parser', function () {
var warnings = []
| 2 |
diff --git a/package.json b/package.json "version": "0.22.3",
"description": " React port of slick carousel",
"main": "./lib",
- "files": [
- "dist",
- "lib"
- ],
+ "files": ["dist", "lib"],
"scripts": {
"start": "gulp server",
"build": "gulp clean && gulp sass && gulp copy && webpack",
"test": "eslint src && jest",
"test:watch": "jest --watch",
"lint": "eslint src",
- "gen": "node examples/scripts/generateExampleConfigs.js && node examples/scripts/generateExamples.js && xdg-open docs/jquery.html"
+ "gen":
+ "node examples/scripts/generateExampleConfigs.js && node examples/scripts/generateExamples.js && xdg-open docs/jquery.html",
+ "precommit": "lint-staged"
},
"author": "Kiran Abburi",
"license": "MIT",
"foundation-apps": "^1.2.0",
"gulp": "^3.9.1",
"gulp-sass": "^3.1.0",
+ "husky": "^0.14.3",
"jasmine-core": "^2.5.2",
"jest": "^19.0.2",
"jquery": "^3.2.1",
"js-beautify": "^1.7.5",
"json-loader": "^0.5.4",
+ "lint-staged": "^7.0.3",
"node-sass": "^4.5.2",
"postcss-loader": "^1.3.3",
"raf": "^3.4.0",
"react-dom": "^0.14.0 || ^15.0.1 || ^16.0.0"
},
"jest": {
- "setupFiles": [
- "./test-setup.js"
- ],
+ "setupFiles": ["./test-setup.js"],
"testPathIgnorePatterns": [
"/__tests__/scripts.js",
"/__tests__/testUtils.js"
]
},
+ "lint-staged": {
+ "*.{js,json,md}": ["prettier --write", "git add"]
+ },
"npmName": "react-slick",
"npmFileMap": [
{
"basePath": "/dist/",
- "files": [
- "*.js"
- ]
+ "files": ["*.js"]
}
],
"bugs": {
| 0 |
diff --git a/app-object.js b/app-object.js @@ -28,6 +28,7 @@ gl.enable(gl.SAMPLE_ALPHA_TO_COVERAGE);
renderer.xr.enabled = true;
const scene = new THREE.Scene();
+const orthographicScene = new THREE.Scene();
const avatarScene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(60, window.innerWidth / window.innerHeight, 0.1, 1000);
@@ -46,6 +47,9 @@ dolly.add(camera);
dolly.add(avatarCamera);
scene.add(dolly);
+const orthographicCamera = new THREE.OrthographicCamera(-1, 1, 1, -1, 0.1, 100);
+scene.add(orthographicCamera);
+
const _addDefaultLights = (scene, shadowMap) => {
const ambientLight = new THREE.AmbientLight(0xFFFFFF);
scene.add(ambientLight);
@@ -156,4 +160,4 @@ class App extends EventTarget {
}
}
-export {renderer, scene, avatarScene, camera, avatarCamera, dolly, /*orbitControls,*/ renderer2, scene2, scene3, appManager};
\ No newline at end of file
+export {renderer, scene, orthographicScene, avatarScene, camera, orthographicCamera, avatarCamera, dolly, /*orbitControls,*/ renderer2, scene2, scene3, appManager};
\ No newline at end of file
| 0 |
diff --git a/lib/plugins/input/elasticsearchHttp.js b/lib/plugins/input/elasticsearchHttp.js @@ -10,17 +10,18 @@ function InputElasticsearchHttp (config, eventEmitter) {
if (config.workers) {
this.config.workers = config.workers
} else {
- this.config.workers = 1
+ this.config.workers = 0
}
}
InputElasticsearchHttp.prototype.start = function () {
if (this.config) {
throng({
- workers: this.config.workers || this.WORKERS || 1,
+ workers: this.config.workers || this.WORKERS || 0,
lifetime: Infinity
}, this.startElasticsearchHttp.bind(this))
}
}
+
InputElasticsearchHttp.prototype.stop = function (cb) {
cb()
}
| 12 |
diff --git a/docs/CICD.md b/docs/CICD.md @@ -42,3 +42,13 @@ The workflow accepts the following inputs:
The workflow sets kubeconfig from github secrets and tries to install the chart in the `cicd` cluster. If the chart is not ready yet, the workflow retries up to 20 times.
After the chart is installed, the [sanity tests](https://github.com/kube-HPC/system-test-node.git) are executed.
+## Frozen Version Development
+When needed it is possible to make changes to a frozen version (create release patches).
+1. Checkout the version branch (e.g. release_v2.3)
+2. Create a feature brance for the fix (make sure to **not** name is release* as this is a reserved prefix).
+3. Create the fix, and commit the changes
+4. Create a PR. This will run the regular PR checks and allow for a code-review.
+5. Optionally deploy to `dev1` cluster for testing (`/deply` comment, only on [hkube](https://github.com/kube-HPC/hkube) repo).
+6. When the PR is merged the [CI-FROZEN](https://github.com/kube-HPC/hkube/actions/workflows/frozen.yml) workflow is executed to build the new version and trigger a new helm chart (dev-version)
+7. After the dev-version is tested, run the [CI-PROMOTE](https://github.com/kube-HPC/helm/actions/workflows/promote.yaml) workflow specifing the chart version to promote the helm chart from dev-version to frozen version (from `./dev` to `./`).
+8. Optionally run the [CI-CREATE-RELEASE_BUNDLE_S3](https://github.dev/kube-HPC/release-manager/blob/master/.github/workflows/create_release_bundle_s3.yaml) workflow to create a downloadable bundle (tar.gz)
| 0 |
diff --git a/client/home.html b/client/home.html }
}
- if (['CHARGING', 'DOCKING', 'PAUSED', 'SPOT_CLEANING', 'IDLE', 'RETURNING_HOME', 'GOING_TO_TARGET'].indexOf(res.state) != -1) {
+ if (['CHARGING', 'DOCKING', 'PAUSED', 'IDLE'].indexOf(res.state) != -1) {
stopButton.setAttribute("disabled", "disabled");
} else {
stopButton.removeAttribute("disabled");
}
- if (['CLEANING', 'RETURNING_HOME', 'CHARGING', 'CHARGING_PROBLEM', 'SPOT_CLEANING', 'GOING_TO_TARGET', 'ZONED_CLEANING'].indexOf(res.state) != -1) {
+ if (['RETURNING_HOME', 'CHARGING', 'CHARGING_PROBLEM'].indexOf(res.state) != -1) {
homeButton.setAttribute("disabled", "disabled");
} else {
homeButton.removeAttribute("disabled");
| 11 |
diff --git a/lib/planner.js b/lib/planner.js @@ -181,9 +181,14 @@ class Planner {
if (error) reject(error);
else resolve(data);
});
- this.applications
- .get(task.app)
- .pool.next()
+ const app = this.applications.get(task.app);
+ if (!app) {
+ const data = JSON.stringify(task);
+ const error = new Error('No application for task: ' + data);
+ this.console.error(error);
+ }
+ app.pool
+ .next()
.then((next) => {
next.postMessage(msg, [port]);
})
| 8 |
diff --git a/src/util/FeedFetcher.js b/src/util/FeedFetcher.js @@ -133,7 +133,7 @@ class FeedFetcher {
try {
res = await fetch(url, options)
} catch (err) {
- throw new RequestError(null, err.message)
+ throw new RequestError(null, err.message === 'The user aborted a request.' ? 'Connected timed out' : err.message)
} finally {
clearTimeout(timeout)
}
| 14 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.