Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
fix vis archive

fix after rebase
  • Loading branch information
gka committed Sep 2, 2021
1 parent 68d6bab commit 54dd10c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 532 deletions.
4 changes: 3 additions & 1 deletion src/routes/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
register: async (server, options) => {
const config = server.methods.config();

server.methods.prepareView('edit/Index.svelte');

server.route({
method: 'GET',
path: '/{chartId}/{step?}',
Expand All @@ -35,7 +37,7 @@ module.exports = {

const data = await api(`/charts/${chart.id}/data`, { json: false });

return h.view('edit/App.svelte', {
return h.view('edit/Index.svelte', {
props: {
rawChart: chart,
rawData: data,
Expand Down
21 changes: 0 additions & 21 deletions src/routes/signin.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,6 @@ module.exports = {

server.methods.prepareView('signin/Index.svelte');

server.route({
method: 'GET',
path: '/',
options: {
auth: 'session'
},
async handler(request, h) {
const { ref } = request.query;
return h.view('signin/Index.svelte', {
props: {
target: ref,
// @todo: read from config
noSignUp: false,
noSignIn: false
}
});
}
});

server.methods.prepareView('signin/Index.svelte');

for (var provider in oauth) {
if (!Object.keys(Bell.providers).includes(provider)) continue;

Expand Down
4 changes: 2 additions & 2 deletions src/views/edit/App.svelte → src/views/edit/Index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import Header from './nav/Header.svelte';
import Describe from './Describe.svelte';
import Publish from './Publish.svelte';
import UploadData from './UploadData.svelte';
import Upload from './Upload.svelte';
import Visualize from './Visualize.svelte';
import { data, chart, unsavedChanges, initChartStore, initDataStore } from './stores';
Expand All @@ -20,7 +20,7 @@
index: 1,
id: 'upload',
title: 'Upload data',
ui: UploadData
ui: Upload
},
{
index: 2,
Expand Down
2 changes: 1 addition & 1 deletion src/views/layout/partials/header/VisArchive.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>
{:else}
{#each items as item}
<a class="navbar-item" href="/v2/edit/{item.id}/">
<a class="navbar-item vis-archive-item" href="/v2/edit/{item.id}/">
<div class="columns is-variable is-0">
<div class="column is-narrow">
<img width="40" src={item.thumbnails.plain} alt="" class="mr-2" />
Expand Down
Loading

0 comments on commit 54dd10c

Please sign in to comment.