Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simple-editor
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Public
simple-editor
Commits
9ac52b6d
Commit
9ac52b6d
authored
Aug 07, 2026
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Connect editor resources to API explorer
parent
8d63f842
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
1 deletion
+49
-1
App.vue
src/App.vue
+10
-0
ClipEffectsModal.vue
src/components/ClipEffectsModal.vue
+16
-0
Clips.vue
src/components/Clips.vue
+9
-0
Files.vue
src/components/Files.vue
+2
-0
Projects.vue
src/components/Projects.vue
+1
-0
Editor.vue
src/views/Editor.vue
+11
-1
No files found.
src/App.vue
View file @
9ac52b6d
...
@@ -20,6 +20,12 @@
...
@@ -20,6 +20,12 @@
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
<router-link
to=
"/about"
class=
"nav-link"
aria-current=
"page"
>
About
</router-link>
<router-link
to=
"/about"
class=
"nav-link"
aria-current=
"page"
>
About
</router-link>
</li>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
:href=
"apiHref('/')"
target=
"_blank"
rel=
"noopener"
>
API Explorer
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
:href=
"apiHref('/doc/')"
target=
"_blank"
rel=
"noopener"
>
Documentation
</a>
</li>
<li
v-show=
"isAuthenticated"
class=
"nav-item px-3"
>
<li
v-show=
"isAuthenticated"
class=
"nav-item px-3"
>
<router-link
to=
"/logout"
class=
"nav-link"
aria-current=
"page"
>
Logout
</router-link>
<router-link
to=
"/logout"
class=
"nav-link"
aria-current=
"page"
>
Logout
</router-link>
</li>
</li>
...
@@ -56,6 +62,10 @@ import DemoExpiryNotice from './components/DemoExpiryNotice.vue'
...
@@ -56,6 +62,10 @@ import DemoExpiryNotice from './components/DemoExpiryNotice.vue'
export
default
{
export
default
{
components
:
{
DemoExpiryNotice
},
components
:
{
DemoExpiryNotice
},
methods
:
{
methods
:
{
apiHref
(
path
)
{
const
base
=
(
process
.
env
.
VUE_APP_OPENSHOT_API_URL
||
window
.
location
.
origin
).
replace
(
/
\/
+$/
,
''
)
return
`
${
base
}${
path
}
`
},
removeError
(
error
)
{
removeError
(
error
)
{
this
.
removeError
(
error
)
this
.
removeError
(
error
)
},
},
...
...
src/components/ClipEffectsModal.vue
View file @
9ac52b6d
...
@@ -14,6 +14,13 @@
...
@@ -14,6 +14,13 @@
<p
v-if=
"clipDisplayLabel"
class=
"clip-meta mb-0 text-muted"
>
<p
v-if=
"clipDisplayLabel"
class=
"clip-meta mb-0 text-muted"
>
{{
clipDisplayLabel
}}
{{
clipDisplayLabel
}}
</p>
</p>
<a
v-if=
"clipContext.clipUrl"
class=
"clip-api-link"
:href=
"clipContext.clipUrl"
target=
"_blank"
rel=
"noopener"
>
View this clip in API
</a>
</div>
</div>
<button
<button
type=
"button"
type=
"button"
...
@@ -506,6 +513,15 @@ export default {
...
@@ -506,6 +513,15 @@ export default {
.clip-effects-modal
.clip-meta
{
.clip-effects-modal
.clip-meta
{
font-size
:
0.85rem
;
font-size
:
0.85rem
;
}
}
.clip-effects-modal
.clip-api-link
{
display
:
inline-block
;
margin-top
:
3px
;
color
:
#2563eb
;
font-size
:
0.78rem
;
font-weight
:
600
;
text-decoration
:
none
;
}
.clip-effects-modal
.clip-api-link
:hover
{
text-decoration
:
underline
;
}
.clip-effects-modal
.audio-controls
{
.clip-effects-modal
.audio-controls
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
...
src/components/Clips.vue
View file @
9ac52b6d
...
@@ -61,6 +61,8 @@
...
@@ -61,6 +61,8 @@
<li
v-if=
"index > 0"
><a
class=
"dropdown-item"
href=
"#"
@
click=
"moveClipBtn('up', clip, index, index - 1)"
>
Move Up
</a></li>
<li
v-if=
"index > 0"
><a
class=
"dropdown-item"
href=
"#"
@
click=
"moveClipBtn('up', clip, index, index - 1)"
>
Move Up
</a></li>
<li
v-if=
"index
<
clips
.
length
-
1
"
><a
class=
"dropdown-item"
href=
"#"
@
click=
"moveClipBtn('down', clip, index, index + 1)"
>
Move Down
</a></li>
<li
v-if=
"index
<
clips
.
length
-
1
"
><a
class=
"dropdown-item"
href=
"#"
@
click=
"moveClipBtn('down', clip, index, index + 1)"
>
Move Down
</a></li>
<li
v-if=
"index > 0 || index
<
clips
.
length
-
1
"
><hr
class=
"dropdown-divider"
></li>
<li
v-if=
"index > 0 || index
<
clips
.
length
-
1
"
><hr
class=
"dropdown-divider"
></li>
<li><a
class=
"dropdown-item"
:href=
"clip.url"
target=
"_blank"
rel=
"noopener"
>
View in API
</a></li>
<li><hr
class=
"dropdown-divider"
></li>
<li><a
class=
"dropdown-item"
href=
"#"
@
click=
"deleteClipBtn(clip.id)"
>
Delete
</a></li>
<li><a
class=
"dropdown-item"
href=
"#"
@
click=
"deleteClipBtn(clip.id)"
>
Delete
</a></li>
</ul>
</ul>
</span>
</span>
...
@@ -134,6 +136,13 @@
...
@@ -134,6 +136,13 @@
Cancel
Cancel
</button>
</button>
<div
class=
"d-flex align-items-center gap-2"
>
<div
class=
"d-flex align-items-center gap-2"
>
<a
v-if=
"current_export.url"
class=
"btn btn-outline-primary"
:href=
"current_export.url"
target=
"_blank"
rel=
"noopener"
>
View Export in API
</a>
<div
v-if=
"current_export.output"
class=
"btn-group"
>
<div
v-if=
"current_export.output"
class=
"btn-group"
>
<button
type=
"button"
<button
type=
"button"
class=
"btn btn-success dropdown-toggle"
class=
"btn btn-success dropdown-toggle"
...
...
src/components/Files.vue
View file @
9ac52b6d
...
@@ -54,6 +54,8 @@
...
@@ -54,6 +54,8 @@
<path
d=
"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
/>
<path
d=
"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
/>
</svg>
</svg>
<ul
class=
"dropdown-menu small-dropdown"
>
<ul
class=
"dropdown-menu small-dropdown"
>
<li><a
class=
"dropdown-item"
:href=
"file.url"
target=
"_blank"
rel=
"noopener"
>
View in API
</a></li>
<li><hr
class=
"dropdown-divider"
></li>
<li><a
class=
"dropdown-item"
href=
"#"
@
click=
"deleteFileBtn(file)"
>
Delete
</a></li>
<li><a
class=
"dropdown-item"
href=
"#"
@
click=
"deleteFileBtn(file)"
>
Delete
</a></li>
</ul>
</ul>
</div>
</div>
...
...
src/components/Projects.vue
View file @
9ac52b6d
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
</svg>
</svg>
<ul
class=
"dropdown-menu small-dropdown"
>
<ul
class=
"dropdown-menu small-dropdown"
>
<li><a
class=
"dropdown-item"
href=
"#"
@
click=
"launchEditor(project)"
>
Launch Editor
</a></li>
<li><a
class=
"dropdown-item"
href=
"#"
@
click=
"launchEditor(project)"
>
Launch Editor
</a></li>
<li><a
class=
"dropdown-item"
:href=
"project.url"
target=
"_blank"
rel=
"noopener"
>
View in API
</a></li>
<li><hr
class=
"dropdown-divider"
></li>
<li><hr
class=
"dropdown-divider"
></li>
<li><a
class=
"dropdown-item"
href=
"#"
@
click=
"editProjectClick(project)"
>
Edit
</a></li>
<li><a
class=
"dropdown-item"
href=
"#"
@
click=
"editProjectClick(project)"
>
Edit
</a></li>
<li><a
class=
"dropdown-item"
href=
"#"
@
click=
"showDeletePrompt(project)"
>
Delete
</a></li>
<li><a
class=
"dropdown-item"
href=
"#"
@
click=
"showDeletePrompt(project)"
>
Delete
</a></li>
...
...
src/views/Editor.vue
View file @
9ac52b6d
<
template
>
<
template
>
<div
v-if=
"hasData"
class=
"api-context-bar"
>
<div><span>
Editing project
</span><strong>
{{
project
.
name
}}
</strong></div>
<a
:href=
"project.url"
target=
"_blank"
rel=
"noopener"
>
View Project in API
</a>
</div>
<!-- Video Editor container -->
<!-- Video Editor container -->
<div
class=
"row"
>
<div
class=
"row"
>
...
@@ -82,5 +87,10 @@ export default {
...
@@ -82,5 +87,10 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.api-context-bar
{
margin-bottom
:
16px
;
padding
:
10px
14px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
gap
:
16px
;
border
:
1px
solid
#dbe3ef
;
border-radius
:
9px
;
background
:
#f8fafc
;
color
:
#64748b
;
font-size
:
13px
;
}
.api-context-bar
span
{
margin-right
:
7px
;
}
.api-context-bar
strong
{
color
:
#273449
;
}
.api-context-bar
a
{
color
:
#2563eb
;
font-weight
:
600
;
text-decoration
:
none
;
white-space
:
nowrap
;
}
.api-context-bar
a
:hover
{
text-decoration
:
underline
;
}
@media
(
max-width
:
575px
)
{
.api-context-bar
{
align-items
:
flex-start
;
flex-direction
:
column
;
gap
:
5px
;
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment