2023-08-02 20:13:04 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
2023-08-24 15:26:32 +08:00
|
|
|
<%= csp_meta_tag %>
|
2023-08-02 20:13:04 +08:00
|
|
|
<%= javascript_include_tag 'i18n_bundle' %>
|
|
|
|
<%= stylesheet_link_tag 'sn_icon_font' %>
|
2023-09-07 21:27:53 +08:00
|
|
|
<%= stylesheet_link_tag 'application' %>
|
2023-08-02 20:13:04 +08:00
|
|
|
<%= stylesheet_link_tag 'tailwind' %>
|
2023-08-25 20:22:37 +08:00
|
|
|
<%= stylesheet_link_tag 'open_vector_editor' %>
|
2023-08-02 20:13:04 +08:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2023-08-09 20:37:57 +08:00
|
|
|
<% if @ove_enabled %>
|
|
|
|
<div id="open-vector-editor" data-behaviour="vue">
|
|
|
|
<open-vector-editor
|
|
|
|
file-url="<%= @file_url %>"
|
|
|
|
file-name="<%= @file_name %>"
|
|
|
|
update-url="<%= @asset ? gene_sequence_asset_url(@asset) : gene_sequence_assets_url(parent_type: params[:parent_type], parent_id: params[:parent_id]) %>"
|
2023-09-14 23:10:52 +08:00
|
|
|
can-edit-file="<%= asset_managable? %>"
|
2023-09-15 22:07:10 +08:00
|
|
|
ove-warning="<%= defined?(@warnings) ? @warnings : '' %>"
|
2023-08-09 20:37:57 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<%= javascript_include_tag 'open_vector_editor' %>
|
|
|
|
<%= javascript_include_tag 'vue_components_open_vector_editor' %>
|
|
|
|
<% end %>
|
2023-08-02 20:13:04 +08:00
|
|
|
</body>
|
|
|
|
</html>
|