mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
final importer touches
This commit is contained in:
@@ -24,9 +24,8 @@
|
|||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-12 justify-content-cente">
|
<div class="col-12 justify-content-cente">
|
||||||
<b-checkbox v-model="import_multiple" switch><span
|
<b-checkbox v-model="import_multiple" switch><span
|
||||||
v-if="import_multiple">Multiple Recipes</span><span
|
v-if="import_multiple"><i class="far fa-copy fa-fw"></i> {{ $t('Multiple') }}</span><span
|
||||||
v-if="!import_multiple">Single Recipe</span></b-checkbox>
|
v-if="!import_multiple"><i class="far fa-file fa-fw"></i> {{ $t('Single') }}</span></b-checkbox>
|
||||||
<!-- TODO localize or maybe icons ? -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<b-input-group class="mt-2" :class="{ bounce: empty_input }"
|
<b-input-group class="mt-2" :class="{ bounce: empty_input }"
|
||||||
@@ -52,23 +51,25 @@
|
|||||||
@click="autoImport()">{{ $t('Import') }}
|
@click="autoImport()">{{ $t('Import') }}
|
||||||
</b-button>
|
</b-button>
|
||||||
|
|
||||||
<div class="row mt-2"> <!-- TODO remove -->
|
<!-- recent imports, nice for testing/development -->
|
||||||
<div class="col col-md-12">
|
<!-- <div class="row mt-2"> -->
|
||||||
<div v-if="!import_multiple">
|
<!-- <div class="col col-md-12">-->
|
||||||
<a href="#" @click="clearRecentImports()">Clear recent
|
<!-- <div v-if="!import_multiple">-->
|
||||||
imports</a>
|
<!-- <a href="#" @click="clearRecentImports()">Clear recent-->
|
||||||
<ul>
|
<!-- imports</a>-->
|
||||||
<li v-for="x in recent_urls" v-bind:key="x">
|
<!-- <ul>-->
|
||||||
<a href="#"
|
<!-- <li v-for="x in recent_urls" v-bind:key="x">-->
|
||||||
@click="loadRecipe(x, false, undefined)">{{
|
<!-- <a href="#"-->
|
||||||
x
|
<!-- @click="loadRecipe(x, false, undefined)">{{-->
|
||||||
}}</a>
|
<!-- x-->
|
||||||
</li>
|
<!-- }}</a>-->
|
||||||
</ul>
|
<!-- </li>-->
|
||||||
|
<!-- </ul>-->
|
||||||
|
|
||||||
|
<!-- </div>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
@@ -455,9 +456,7 @@ export default {
|
|||||||
// URL import
|
// URL import
|
||||||
LS_IMPORT_RECENT: 'import_recent_urls', //TODO use central helper to manage all local storage keys (and maybe even access)
|
LS_IMPORT_RECENT: 'import_recent_urls', //TODO use central helper to manage all local storage keys (and maybe even access)
|
||||||
website_url: '',
|
website_url: '',
|
||||||
website_url_list: 'https://madamedessert.de/schokoladenpudding-rezept-mit-echter-schokolade/\nhttps://www.essen-und-trinken.de/rezepte/58294-rzpt-schokoladenpudding\n' +
|
website_url_list: '',
|
||||||
'https://www.chefkoch.de/rezepte/1825781296124455/Schokoladenpudding-selbst-gemacht.html\ntest.com\nhttps://bla.com',
|
|
||||||
|
|
||||||
import_multiple: false,
|
import_multiple: false,
|
||||||
recent_urls: [],
|
recent_urls: [],
|
||||||
source_data: '',
|
source_data: '',
|
||||||
|
|||||||
@@ -389,6 +389,8 @@
|
|||||||
"Keyword": "Keyword",
|
"Keyword": "Keyword",
|
||||||
"Advanced": "Advanced",
|
"Advanced": "Advanced",
|
||||||
"Page": "Page",
|
"Page": "Page",
|
||||||
|
"Single": "Single",
|
||||||
|
"Multiple": "Multiple",
|
||||||
"Reset": "Reset",
|
"Reset": "Reset",
|
||||||
"Options": "Options",
|
"Options": "Options",
|
||||||
"Create Food": "Create Food",
|
"Create Food": "Create Food",
|
||||||
|
|||||||
Reference in New Issue
Block a user