forked from Scribouilli/scribouilli
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix type typo * Réception de la connexion via gitlab * Retour du composant AfterOauthLogin.svelte qui avait disparu dans le rebase + ajustements
- Loading branch information
1 parent
bfbf832
commit 36c051f
Showing
10 changed files
with
132 additions
and
85 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script> | ||
import Skeleton from "./../Skeleton.svelte"; | ||
import SiteCreationLoader from "./../loaders/SiteCreationLoader.svelte"; | ||
import './../../types.js' | ||
/** @type {Promise<GithubRepository[]|Void>} */ | ||
export let currentUserReposP; | ||
/** @type {string} */ | ||
export let type; | ||
</script> | ||
|
||
<Skeleton> | ||
<section class="screen" id="loader"> | ||
{#if type === 'gitlab'} | ||
<h2>Login depuis gitlab détecté (et on ne sait pas encore le gérer)</h2> | ||
{:else} | ||
{#await currentUserReposP} | ||
<h2>Nous regardons si vous avez plusieurs sites Scribouilli…</h2> | ||
<img | ||
src="./assets/images/hearts.svg" | ||
alt="cœur sur toi le temps que ça charge" | ||
/> | ||
{:then} | ||
<SiteCreationLoader /> | ||
{/await} | ||
{/if} | ||
|
||
|
||
|
||
|
||
</section> | ||
</Skeleton> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,49 @@ | ||
//@ts-check | ||
|
||
import page from "page"; | ||
|
||
import store from "../store.js"; | ||
|
||
import welcome from "./welcome.js"; | ||
import account from './account.js'; | ||
import login from './login.js'; | ||
import afterGithubLogin from "./after-github-login.js"; | ||
import atelierListArticles from "./atelier-list-articles.js"; | ||
import atelierListPages from "./atelier-list-pages.js"; | ||
import atelierPages from "./atelier-pages.js"; | ||
import atelierArticles from "./atelier-articles.js"; | ||
import createGithubAccount from "./create-github-account.js"; | ||
import selectOrCreateSite from "./select-or-create-site.js"; | ||
import createNewSite from "./create-new-site.js"; | ||
import startFromExistingSite from "./start-from-existing-site.js"; | ||
import settings from "./settings.js"; | ||
|
||
page("/", welcome); | ||
page("/account", account); | ||
page("/login", login); | ||
page("/after-github-login", afterGithubLogin) | ||
page("/atelier-list-articles", atelierListArticles) | ||
page("/atelier-list-pages", atelierListPages) | ||
page("/atelier-page", atelierPages) | ||
page("/atelier-article", atelierArticles) | ||
page("/create-github-account", createGithubAccount) | ||
page("/selectionner-un-site", selectOrCreateSite) | ||
page("/creer-un-nouveau-site", createNewSite) | ||
page("/partir-dun-site-existant", startFromExistingSite) | ||
page("/settings", settings) | ||
|
||
page.base(store.state.basePath); | ||
|
||
page.start(); | ||
import page from 'page' | ||
|
||
import store from '../store.js' | ||
|
||
import welcome from './welcome.js' | ||
import account from './account.js' | ||
import login from './login.js' | ||
import afterOauthLogin from './after-oauth-login.js' | ||
import atelierListArticles from './atelier-list-articles.js' | ||
import atelierListPages from './atelier-list-pages.js' | ||
import atelierPages from './atelier-pages.js' | ||
import atelierArticles from './atelier-articles.js' | ||
import createGithubAccount from './create-github-account.js' | ||
import selectOrCreateSite from './select-or-create-site.js' | ||
import createNewSite from './create-new-site.js' | ||
import startFromExistingSite from './start-from-existing-site.js' | ||
import settings from './settings.js' | ||
|
||
page('/', welcome) | ||
page('/account', account) | ||
page('/login', login) | ||
|
||
page( | ||
'/after-github-login', | ||
(_, next) => { | ||
console.warn( | ||
`Utilisation de la route dépréciée '/after-github-login'. Utiliser plutôt '/after-oauth-login'`, | ||
) | ||
next() | ||
}, | ||
afterOauthLogin, | ||
) | ||
page('/after-oauth-login', afterOauthLogin) | ||
|
||
page('/atelier-list-articles', atelierListArticles) | ||
page('/atelier-list-pages', atelierListPages) | ||
page('/atelier-page', atelierPages) | ||
page('/atelier-article', atelierArticles) | ||
page('/create-github-account', createGithubAccount) | ||
page('/selectionner-un-site', selectOrCreateSite) | ||
page('/creer-un-nouveau-site', createNewSite) | ||
page('/partir-dun-site-existant', startFromExistingSite) | ||
page('/settings', settings) | ||
|
||
page.base(store.state.basePath) | ||
|
||
page.start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
//@ts-check | ||
|
||
import page from 'page' | ||
import './routes/main.js' | ||
|
||
// @ts-ignore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters