Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
trash-and-fire committed Apr 18, 2022
2 parents 2d0a856 + 24c2948 commit 99e98b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function samples(...args) {
}, ...files]).then((result) => {
next.samples[sample] = Object.assign({}, contents.samples[sample], {
hash: meta.hash,
uid: result.uid,
uid: result.id,
files: meta.files,
});
}));
Expand Down
6 changes: 3 additions & 3 deletions repl-maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = class SvelteReplRepository {
throw new Error('No auth token')
}
axios.defaults.headers.common.cookie = `sid=${auth};`
axios.defaults.headers.post['Content-Type'] = 'text/plain;charset=UTF-8';
axios.defaults.headers.patch['Content-Type'] = 'text/plain;charset=UTF-8';
axios.defaults.headers.post['Content-Type'] = 'application/json';
axios.defaults.headers.put['Content-Type'] = 'application/json';
}

getAll() {
Expand All @@ -20,7 +20,7 @@ module.exports = class SvelteReplRepository {
}

update(id, name, files) {
return axios.patch(`https://svelte.dev/repl/${id}.json`, JSON.stringify({ name, files }))
return axios.put(`https://svelte.dev/repl/${id}.json`, JSON.stringify({ name, files }))
.then((response) => response.data);
}
}
2 changes: 0 additions & 2 deletions src/demo/samples/legend.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@
let areaSeries = null;
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type,@typescript-eslint/typedef
function handleSeriesReference(ref) {
areaSeries = ref;
}
let legend = 'ETC USD 7D VWAP';
// eslint-disable-next-line @typescript-eslint/typedef,@typescript-eslint/explicit-function-return-type
function handleCrosshairMove({detail: param}) {
if (param.time) {
const price = param.seriesPrices.get(areaSeries);
Expand Down

0 comments on commit 99e98b0

Please sign in to comment.