mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Merge branch 'public-corpus' of gitlab.ub.uni-bielefeld.de:sfb1288inf/nopaque into public-corpus
This commit is contained in:
		@@ -6,18 +6,37 @@
 | 
			
		||||
  output='gen/app.%(version)s.js',
 | 
			
		||||
  'js/App.js',
 | 
			
		||||
  'js/Utils.js',
 | 
			
		||||
  'js/Forms/Form.js',
 | 
			
		||||
  'js/Forms/CreateCorpusFileForm.js',
 | 
			
		||||
  'js/Forms/CreateJobForm.js',
 | 
			
		||||
  'js/Forms/CreateContributionForm.js',
 | 
			
		||||
  'js/CorpusAnalysis/CQiClient.js',
 | 
			
		||||
  'js/CorpusAnalysis/CorpusAnalysisApp.js',
 | 
			
		||||
  'js/CorpusAnalysis/CorpusAnalysisConcordance.js',
 | 
			
		||||
  'js/CorpusAnalysis/CorpusAnalysisReader.js',
 | 
			
		||||
  'js/CorpusAnalysis/QueryBuilder.js',
 | 
			
		||||
  'js/RessourceDisplays/RessourceDisplay.js',
 | 
			
		||||
  'js/RessourceDisplays/CorpusDisplay.js',
 | 
			
		||||
  'js/RessourceDisplays/JobDisplay.js',
 | 
			
		||||
  'js/XMLtoObject.js'
 | 
			
		||||
%}
 | 
			
		||||
<script src="{{ ASSET_URL }}"></script>
 | 
			
		||||
{%- endassets %}
 | 
			
		||||
{%- assets
 | 
			
		||||
  filters='rjsmin',
 | 
			
		||||
  output='gen/Forms.%(version)s.js',
 | 
			
		||||
  'js/Forms/Form.js',
 | 
			
		||||
  'js/Forms/CreateCorpusFileForm.js',
 | 
			
		||||
  'js/Forms/CreateJobForm.js',
 | 
			
		||||
  'js/Forms/CreateContributionForm.js'
 | 
			
		||||
%}
 | 
			
		||||
<script src="{{ ASSET_URL }}"></script>
 | 
			
		||||
{%- endassets %}
 | 
			
		||||
{%- assets
 | 
			
		||||
  filters='rjsmin',
 | 
			
		||||
  output='gen/ResourceDisplays.%(version)s.js',
 | 
			
		||||
  'js/ResourceDisplays/ResourceDisplay.js',
 | 
			
		||||
  'js/ResourceDisplays/CorpusDisplay.js',
 | 
			
		||||
  'js/ResourceDisplays/JobDisplay.js'
 | 
			
		||||
%}
 | 
			
		||||
<script src="{{ ASSET_URL }}"></script>
 | 
			
		||||
{%- endassets %}
 | 
			
		||||
{%- assets
 | 
			
		||||
  filters='rjsmin',
 | 
			
		||||
  output='gen/ResourceLists.%(version)s.js',
 | 
			
		||||
  'js/ResourceLists/ResourceList.js',
 | 
			
		||||
  'js/ResourceLists/CorpusFileList.js',
 | 
			
		||||
  'js/ResourceLists/PublicCorpusFileList.js',
 | 
			
		||||
@@ -31,8 +50,18 @@
 | 
			
		||||
  'js/ResourceLists/TesseractOCRPipelineModelList.js',
 | 
			
		||||
  'js/ResourceLists/UserList.js',
 | 
			
		||||
  'js/ResourceLists/AdminUserList.js',
 | 
			
		||||
  'js/ResourceLists/CorpusFollowerList.js',
 | 
			
		||||
  'js/XMLtoObject.js'
 | 
			
		||||
  'js/ResourceLists/CorpusFollowerList.js'
 | 
			
		||||
%}
 | 
			
		||||
<script src="{{ ASSET_URL }}"></script>
 | 
			
		||||
{%- endassets %}
 | 
			
		||||
{%- assets
 | 
			
		||||
  filters='rjsmin',
 | 
			
		||||
  output='gen/Requests.%(version)s.js',
 | 
			
		||||
  'js/Requests/Requests.js',
 | 
			
		||||
  'js/Requests/contributions/contributions.js',
 | 
			
		||||
  'js/Requests/contributions/spacy_nlp_pipeline_models.js',
 | 
			
		||||
  'js/Requests/contributions/tesseract_ocr_pipeline_models.js',
 | 
			
		||||
  'js/Requests/Corpora.js'
 | 
			
		||||
%}
 | 
			
		||||
<script src="{{ ASSET_URL }}"></script>
 | 
			
		||||
{%- endassets %}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
{% extends "base.html.j2" %}
 | 
			
		||||
{% import "materialize/wtf.html.j2" as wtf %}
 | 
			
		||||
{% from "contributions/_breadcrumbs.html.j2" import breadcrumbs with context %}
 | 
			
		||||
 | 
			
		||||
{% block page_content %}
 | 
			
		||||
<div class="container">
 | 
			
		||||
@@ -11,7 +10,7 @@
 | 
			
		||||
 | 
			
		||||
    <div class="col s4">
 | 
			
		||||
      <div class="card extension-selector hoverable service-color" data-service="tesseract-ocr-pipeline">
 | 
			
		||||
        <a href="{{ url_for('.tesseract_ocr_pipeline_models') }}" style="position: absolute; width: 100%; height: 100%;"></a>
 | 
			
		||||
        <a href="{{ url_for('.tesseract_ocr_pipeline_models.tesseract_ocr_pipeline_models') }}" style="position: absolute; width: 100%; height: 100%;"></a>
 | 
			
		||||
        <div class="card-content">
 | 
			
		||||
          <span class="card-title" data-service="tesseract-ocr-pipeline"><i class="nopaque-icons service-icons" data-service="tesseract-ocr-pipeline"></i>Tesseract OCR Pipeline Models</span>
 | 
			
		||||
          <p>Here you can see and edit the models that you have created. You can also create new models.</p>
 | 
			
		||||
@@ -21,7 +20,7 @@
 | 
			
		||||
 | 
			
		||||
    <div class="col s4">
 | 
			
		||||
      <div class="card extension-selector hoverable service-color" data-service="spacy-nlp-pipeline">
 | 
			
		||||
      <a href="{{ url_for('.spacy_nlp_pipeline_models') }}" style="position: absolute; width: 100%; height: 100%;"></a>
 | 
			
		||||
        <a href="{{ url_for('.spacy_nlp_pipeline_models.spacy_nlp_pipeline_models') }}" style="position: absolute; width: 100%; height: 100%;"></a>
 | 
			
		||||
        <div class="card-content">
 | 
			
		||||
          <span class="card-title"><i class="nopaque-icons service-icons" data-service="spacy-nlp-pipeline"></i>SpaCy NLP Pipeline Models</span>
 | 
			
		||||
          <p>Here you can see and edit the models that you have created. You can also create new models.</p>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
{% extends "base.html.j2" %}
 | 
			
		||||
{% import "materialize/wtf.html.j2" as wtf %}
 | 
			
		||||
{% from "contributions/_breadcrumbs.html.j2" import breadcrumbs with context %}
 | 
			
		||||
 | 
			
		||||
{% block main_attribs %} class="service-scheme" data-service="spacy-nlp-pipeline"{% endblock main_attribs %}
 | 
			
		||||
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
{% extends "base.html.j2" %}
 | 
			
		||||
{% import "materialize/wtf.html.j2" as wtf %}
 | 
			
		||||
{% from "contributions/_breadcrumbs.html.j2" import breadcrumbs with context %}
 | 
			
		||||
 | 
			
		||||
{% block main_attribs %} class="service-scheme" data-service="spacy-nlp-pipeline"{% endblock main_attribs %}
 | 
			
		||||
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
{% extends "base.html.j2" %}
 | 
			
		||||
{% import "materialize/wtf.html.j2" as wtf %}
 | 
			
		||||
{% from "contributions/_breadcrumbs.html.j2" import breadcrumbs with context %}
 | 
			
		||||
 | 
			
		||||
{% block page_content %}
 | 
			
		||||
<div class="container">
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
{% extends "base.html.j2" %}
 | 
			
		||||
{% import "materialize/wtf.html.j2" as wtf %}
 | 
			
		||||
{% from "contributions/_breadcrumbs.html.j2" import breadcrumbs with context %}
 | 
			
		||||
 | 
			
		||||
{% block main_attribs %} class="service-scheme" data-service="tesseract-ocr-pipeline"{% endblock main_attribs %}
 | 
			
		||||
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
{% extends "base.html.j2" %}
 | 
			
		||||
{% import "materialize/wtf.html.j2" as wtf %}
 | 
			
		||||
{% from "contributions/_breadcrumbs.html.j2" import breadcrumbs with context %}
 | 
			
		||||
 | 
			
		||||
{% block main_attribs %} class="service-scheme" data-service="tesseract-ocr-pipeline"{% endblock main_attribs %}
 | 
			
		||||
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
{% extends "base.html.j2" %}
 | 
			
		||||
{% import "materialize/wtf.html.j2" as wtf %}
 | 
			
		||||
{% from "contributions/_breadcrumbs.html.j2" import breadcrumbs with context %}
 | 
			
		||||
 | 
			
		||||
{% block page_content %}
 | 
			
		||||
<div class="container">
 | 
			
		||||
@@ -68,7 +68,7 @@
 | 
			
		||||
              <a class="btn waves-effect waves-light modal-trigger" href="#publishing-modal" style="width: 100%;"><i class="material-icons left">publish</i>Publishing</a>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="col s12 l6" style="padding: 5px 2.5px 0 2.5px;">
 | 
			
		||||
              <a class="action-button btn red waves-effect waves-light" data-action="delete-request" style="width: 100%;"><i class="material-icons left">delete</i>Delete</a>
 | 
			
		||||
              <a class="btn red waves-effect waves-light modal-trigger" href="#delete-modal" style="width: 100%;"><i class="material-icons left">delete</i>Delete</a>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <span class="card-title">Social</span>
 | 
			
		||||
@@ -131,6 +131,17 @@
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="modal" id="delete-modal">
 | 
			
		||||
  <div class="modal-content">
 | 
			
		||||
    <h4>Confirm Corpus deletion</h4>
 | 
			
		||||
    <p>Do you really want to delete the Corpus <b>{{ corpus.title }}</b>? All files will be permanently deleted!</p>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="modal-footer">
 | 
			
		||||
    <a class="btn modal-close waves-effect waves-light">Cancel</a>
 | 
			
		||||
    <a class="btn modal-close red waves-effect waves-light" id="delete-modal-delete-button">Delete</a>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="modal no-autoinit" id="invite-user-modal">
 | 
			
		||||
  <div class="modal-content">
 | 
			
		||||
    <h4>Invite a nopaque user by username</h4>
 | 
			
		||||
@@ -215,13 +226,21 @@
 | 
			
		||||
  let publishingModalIsPublicSwitchElement = document.querySelector('#publishing-modal-is-public-switch');
 | 
			
		||||
  publishingModalIsPublicSwitchElement.addEventListener('change', (event) => {
 | 
			
		||||
    let newIsPublic = publishingModalIsPublicSwitchElement.checked;
 | 
			
		||||
    Utils.updateCorpusIsPublicRequest(corpusId, newIsPublic)
 | 
			
		||||
    Requests.corpora.corpus.isPublic.update(corpusId, newIsPublic)
 | 
			
		||||
      .catch((response) => {
 | 
			
		||||
        publishingModalIsPublicSwitchElement.checked = !newIsPublic;
 | 
			
		||||
      });
 | 
			
		||||
  });
 | 
			
		||||
  // #endregion publishing_modal_js
 | 
			
		||||
 | 
			
		||||
  // #region delete_modal_js
 | 
			
		||||
  let deleteModalDeleteButtonElement = document.querySelector('#delete-modal-delete-button');
 | 
			
		||||
  deleteModalDeleteButtonElement.addEventListener('click', (event) => {
 | 
			
		||||
    Requests.corpora.corpus.delete(corpusId)
 | 
			
		||||
      .then((response) => {window.location.href = '/dashboard';});
 | 
			
		||||
  });
 | 
			
		||||
  // #endregion delete_modal_js
 | 
			
		||||
 | 
			
		||||
  // #region invite_user_modal_js
 | 
			
		||||
  let inviteUserModalElement = document.querySelector('#invite-user-modal');
 | 
			
		||||
  let inviteUserModalSearchElement = document.querySelector('#invite-user-modal-search');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user