Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
pleroma-fe
Merge requests
!1378
Translations update from Weblate
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Translations update from Weblate
translate/pleroma-fe:weblate-pleroma-pleroma-fe
into
develop
Overview
0
Commits
67
Pipelines
42
Changes
4
Merged
Pleroma Weblate
requested to merge
translate/pleroma-fe:weblate-pleroma-pleroma-fe
into
develop
3 years ago
Overview
0
Commits
67
Pipelines
42
Changes
14
Expand
0
0
Merge request reports
Compare
version 4
version 41
330665da
3 years ago
version 40
e338f6be
3 years ago
version 39
eda817cc
3 years ago
version 38
64aba422
3 years ago
version 37
b50a9a1d
3 years ago
version 36
fdd4be3d
3 years ago
version 35
407bdbf9
3 years ago
version 34
e55644f1
3 years ago
version 33
98d12beb
3 years ago
version 32
62ba2372
3 years ago
version 31
e8449166
3 years ago
version 30
39b62144
3 years ago
version 29
a6f66cfa
3 years ago
version 28
303cf391
3 years ago
version 27
61b60f8a
3 years ago
version 26
4cebc943
3 years ago
version 25
3a0d4fdc
3 years ago
version 24
5e82b7e3
3 years ago
version 23
e262103e
3 years ago
version 22
78fbee36
3 years ago
version 21
55fa3534
3 years ago
version 20
e958c8e9
3 years ago
version 19
225f8c44
3 years ago
version 18
3f68af08
3 years ago
version 17
b406ebdc
3 years ago
version 16
0578467e
3 years ago
version 15
110a37f6
3 years ago
version 14
62679e24
3 years ago
version 13
5ef01844
3 years ago
version 12
e00c3ccf
3 years ago
version 11
b486788e
3 years ago
version 10
3cff4b22
3 years ago
version 9
a3dccac7
3 years ago
version 8
e643ff82
3 years ago
version 7
4583f76e
3 years ago
version 6
1c41deff
3 years ago
version 5
0be5981d
3 years ago
version 4
81a823d3
3 years ago
version 3
88665d8c
3 years ago
version 2
4c437445
3 years ago
version 1
db30cf9c
3 years ago
develop (base)
and
version 5
latest version
711bf091
67 commits,
3 years ago
version 41
330665da
66 commits,
3 years ago
version 40
e338f6be
65 commits,
3 years ago
version 39
eda817cc
64 commits,
3 years ago
version 38
64aba422
62 commits,
3 years ago
version 37
b50a9a1d
60 commits,
3 years ago
version 36
fdd4be3d
59 commits,
3 years ago
version 35
407bdbf9
58 commits,
3 years ago
version 34
e55644f1
56 commits,
3 years ago
version 33
98d12beb
55 commits,
3 years ago
version 32
62ba2372
52 commits,
3 years ago
version 31
e8449166
50 commits,
3 years ago
version 30
39b62144
48 commits,
3 years ago
version 29
a6f66cfa
46 commits,
3 years ago
version 28
303cf391
44 commits,
3 years ago
version 27
61b60f8a
42 commits,
3 years ago
version 26
4cebc943
40 commits,
3 years ago
version 25
3a0d4fdc
38 commits,
3 years ago
version 24
5e82b7e3
36 commits,
3 years ago
version 23
e262103e
34 commits,
3 years ago
version 22
78fbee36
32 commits,
3 years ago
version 21
55fa3534
30 commits,
3 years ago
version 20
e958c8e9
28 commits,
3 years ago
version 19
225f8c44
26 commits,
3 years ago
version 18
3f68af08
24 commits,
3 years ago
version 17
b406ebdc
22 commits,
3 years ago
version 16
0578467e
20 commits,
3 years ago
version 15
110a37f6
18 commits,
3 years ago
version 14
62679e24
16 commits,
3 years ago
version 13
5ef01844
14 commits,
3 years ago
version 12
e00c3ccf
12 commits,
3 years ago
version 11
b486788e
11 commits,
3 years ago
version 10
3cff4b22
11 commits,
3 years ago
version 9
a3dccac7
10 commits,
3 years ago
version 8
e643ff82
8 commits,
3 years ago
version 7
4583f76e
7 commits,
3 years ago
version 6
1c41deff
5 commits,
3 years ago
version 5
0be5981d
4 commits,
3 years ago
version 4
81a823d3
4 commits,
3 years ago
version 3
88665d8c
3 commits,
3 years ago
version 2
4c437445
2 commits,
3 years ago
version 1
db30cf9c
1 commit,
3 years ago
Show latest version
14 files
+
396
−
194
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
src/components/export_import/export_import.vue deleted
100644 → 0
+
0
−
102
Options
<
template
>
<div
class=
"import-export-container"
>
<slot
name=
"before"
/>
<button
class=
"btn button-default"
@
click=
"exportData"
>
{{
exportLabel
}}
</button>
<button
class=
"btn button-default"
@
click=
"importData"
>
{{
importLabel
}}
</button>
<slot
name=
"afterButtons"
/>
<p
v-if=
"importFailed"
class=
"alert error"
>
{{
importFailedText
}}
</p>
<slot
name=
"afterError"
/>
</div>
</
template
>
<
script
>
export
default
{
props
:
[
'
exportObject
'
,
'
importLabel
'
,
'
exportLabel
'
,
'
importFailedText
'
,
'
validator
'
,
'
onImport
'
,
'
onImportFailure
'
],
data
()
{
return
{
importFailed
:
false
}
},
methods
:
{
exportData
()
{
const
stringified
=
JSON
.
stringify
(
this
.
exportObject
,
null
,
2
)
// Pretty-print and indent with 2 spaces
// Create an invisible link with a data url and simulate a click
const
e
=
document
.
createElement
(
'
a
'
)
e
.
setAttribute
(
'
download
'
,
'
pleroma_theme.json
'
)
e
.
setAttribute
(
'
href
'
,
'
data:application/json;base64,
'
+
window
.
btoa
(
stringified
))
e
.
style
.
display
=
'
none
'
document
.
body
.
appendChild
(
e
)
e
.
click
()
document
.
body
.
removeChild
(
e
)
},
importData
()
{
this
.
importFailed
=
false
const
filePicker
=
document
.
createElement
(
'
input
'
)
filePicker
.
setAttribute
(
'
type
'
,
'
file
'
)
filePicker
.
setAttribute
(
'
accept
'
,
'
.json
'
)
filePicker
.
addEventListener
(
'
change
'
,
event
=>
{
if
(
event
.
target
.
files
[
0
])
{
// eslint-disable-next-line no-undef
const
reader
=
new
FileReader
()
reader
.
onload
=
({
target
})
=>
{
try
{
const
parsed
=
JSON
.
parse
(
target
.
result
)
const
valid
=
this
.
validator
(
parsed
)
if
(
valid
)
{
this
.
onImport
(
parsed
)
}
else
{
this
.
importFailed
=
true
// this.onImportFailure(valid)
}
}
catch
(
e
)
{
// This will happen both if there is a JSON syntax error or the theme is missing components
this
.
importFailed
=
true
// this.onImportFailure(e)
}
}
reader
.
readAsText
(
event
.
target
.
files
[
0
])
}
})
document
.
body
.
appendChild
(
filePicker
)
filePicker
.
click
()
document
.
body
.
removeChild
(
filePicker
)
}
}
}
</
script
>
<
style
lang=
"scss"
>
.import-export-container
{
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
baseline
;
justify-content
:
center
;
}
</
style
>
Loading