mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-04 20:25:22 +08:00
Add VERSION file where the sciNote Core version is stored
This commit is contained in:
parent
53a1dd14b7
commit
16e672b9d8
5 changed files with 6 additions and 5 deletions
1
VERSION
Normal file
1
VERSION
Normal file
|
@ -0,0 +1 @@
|
|||
1.12.1
|
|
@ -82,7 +82,7 @@ class WopiController < ActionController::Base
|
|||
}
|
||||
response.headers['X-WOPI-HostEndpoint'] = ENV['WOPI_ENDPOINT_URL']
|
||||
response.headers['X-WOPI-MachineName'] = ENV['WOPI_ENDPOINT_URL']
|
||||
response.headers['X-WOPI-ServerVersion'] = Constants::APP_VERSION
|
||||
response.headers['X-WOPI-ServerVersion'] = Scinote::Application::VERSION
|
||||
render json: msg and return
|
||||
end
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<% if show_version %>
|
||||
<%= image_tag('/images/logo.png', class: 'with-version', id: 'logo') %>
|
||||
<span class="version">
|
||||
<%= Constants::APP_VERSION %>
|
||||
<%= Scinote::Application::VERSION %>
|
||||
</span>
|
||||
<% else %>
|
||||
<%= image_tag('/images/logo.png', id: 'logo') %>
|
||||
|
|
|
@ -37,5 +37,8 @@ module Scinote
|
|||
csv: 'text/plain',
|
||||
wopitest: ['text/plain', 'inode/x-empty']
|
||||
}
|
||||
|
||||
# sciNote Core Application version
|
||||
VERSION = File.read(Rails.root.join('VERSION')).strip.freeze
|
||||
end
|
||||
end
|
||||
|
|
|
@ -196,9 +196,6 @@ class Constants
|
|||
# Other
|
||||
#=============================================================================
|
||||
|
||||
# Application version
|
||||
APP_VERSION = '1.12.1'.freeze
|
||||
|
||||
TEXT_EXTRACT_FILE_TYPES = [
|
||||
'application/pdf',
|
||||
'application/rtf',
|
||||
|
|
Loading…
Add table
Reference in a new issue