2020-05-03 14:36:12 +00:00
|
|
|
<template>
|
2020-05-25 00:43:55 +00:00
|
|
|
<div
|
|
|
|
:label="$t('settings.data_import_export_tab')"
|
2020-05-03 14:36:12 +00:00
|
|
|
>
|
2020-05-25 00:43:55 +00:00
|
|
|
<div class="setting-item">
|
|
|
|
<h2>{{ $t('settings.follow_import') }}</h2>
|
|
|
|
<p>{{ $t('settings.import_followers_from_a_csv_file') }}</p>
|
|
|
|
<Importer
|
|
|
|
:submit-handler="importFollows"
|
|
|
|
:success-message="$t('settings.follows_imported')"
|
|
|
|
:error-message="$t('settings.follow_import_error')"
|
2020-05-03 14:36:12 +00:00
|
|
|
/>
|
2020-05-25 00:43:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="setting-item">
|
|
|
|
<h2>{{ $t('settings.follow_export') }}</h2>
|
|
|
|
<Exporter
|
|
|
|
:get-content="getFollowsContent"
|
|
|
|
filename="friends.csv"
|
|
|
|
:export-button-label="$t('settings.follow_export_button')"
|
2020-05-03 14:36:12 +00:00
|
|
|
/>
|
2020-05-25 00:43:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="setting-item">
|
|
|
|
<h2>{{ $t('settings.block_import') }}</h2>
|
|
|
|
<p>{{ $t('settings.import_blocks_from_a_csv_file') }}</p>
|
|
|
|
<Importer
|
|
|
|
:submit-handler="importBlocks"
|
|
|
|
:success-message="$t('settings.blocks_imported')"
|
|
|
|
:error-message="$t('settings.block_import_error')"
|
2020-05-03 14:36:12 +00:00
|
|
|
/>
|
2020-05-25 00:43:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="setting-item">
|
|
|
|
<h2>{{ $t('settings.block_export') }}</h2>
|
|
|
|
<Exporter
|
|
|
|
:get-content="getBlocksContent"
|
|
|
|
filename="blocks.csv"
|
|
|
|
:export-button-label="$t('settings.block_export_button')"
|
2020-05-03 14:36:12 +00:00
|
|
|
/>
|
2020-05-25 00:43:55 +00:00
|
|
|
</div>
|
2020-05-03 14:36:12 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2020-05-10 03:46:06 +00:00
|
|
|
<script src="./data_import_export_tab.js"></script>
|
2020-05-03 14:36:12 +00:00
|
|
|
<!-- <style lang="scss" src="./profile.scss"></style> -->
|