mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
Move javascript files to fit new style
This commit is contained in:
parent
660d7ebc99
commit
d298b200dc
@ -1,4 +1,4 @@
|
||||
class CorpusAnalysisApp {
|
||||
nopaque.corpus_analysis.App = class App {
|
||||
constructor(corpusId) {
|
||||
this.corpusId = corpusId;
|
||||
|
@ -1,4 +1,4 @@
|
||||
class CorpusAnalysisConcordance {
|
||||
nopaque.corpus_analysis.ConcordanceExtension = class ConcordanceExtension {
|
||||
name = 'Concordance';
|
||||
|
||||
constructor(app) {
|
@ -1,4 +1,4 @@
|
||||
class CorpusAnalysisReader {
|
||||
nopaque.corpus_analysis.ReaderExtension = class ReaderExtension {
|
||||
name = 'Reader';
|
||||
|
||||
constructor(app) {
|
@ -1,4 +1,4 @@
|
||||
class CorpusAnalysisStaticVisualization {
|
||||
nopaque.corpus_analysis.StaticVisualizationExtension = class StaticVisualizationExtension {
|
||||
name = 'Static Visualization (beta)';
|
||||
|
||||
constructor(app) {
|
@ -76,28 +76,28 @@
|
||||
{%- assets
|
||||
filters='rjsmin',
|
||||
output='gen/corpus-analysis.%(version)s.js',
|
||||
'js/CorpusAnalysis/index.js',
|
||||
'js/CorpusAnalysis/cqi/index.js',
|
||||
'js/CorpusAnalysis/cqi/constants.js',
|
||||
'js/CorpusAnalysis/cqi/errors.js',
|
||||
'js/CorpusAnalysis/cqi/status.js',
|
||||
'js/CorpusAnalysis/cqi/api/index.js',
|
||||
'js/CorpusAnalysis/cqi/api/client.js',
|
||||
'js/CorpusAnalysis/cqi/models/index.js',
|
||||
'js/CorpusAnalysis/cqi/models/resource.js',
|
||||
'js/CorpusAnalysis/cqi/models/attributes.js',
|
||||
'js/CorpusAnalysis/cqi/models/subcorpora.js',
|
||||
'js/CorpusAnalysis/cqi/models/corpora.js',
|
||||
'js/CorpusAnalysis/cqi/client.js',
|
||||
'js/CorpusAnalysis/query-builder/index.js',
|
||||
'js/CorpusAnalysis/query-builder/element-references.js',
|
||||
'js/CorpusAnalysis/query-builder/general-query-builder-functions.js',
|
||||
'js/CorpusAnalysis/query-builder/structural-attribute-builder-functions.js',
|
||||
'js/CorpusAnalysis/query-builder/token-attribute-builder-functions.js',
|
||||
'js/CorpusAnalysis/CorpusAnalysisApp.js',
|
||||
'js/CorpusAnalysis/CorpusAnalysisConcordance.js',
|
||||
'js/CorpusAnalysis/CorpusAnalysisReader.js',
|
||||
'js/CorpusAnalysis/CorpusAnalysisStaticVisualization.js'
|
||||
'js/corpus-analysis/index.js',
|
||||
'js/corpus-analysis/cqi/index.js',
|
||||
'js/corpus-analysis/cqi/constants.js',
|
||||
'js/corpus-analysis/cqi/errors.js',
|
||||
'js/corpus-analysis/cqi/status.js',
|
||||
'js/corpus-analysis/cqi/api/index.js',
|
||||
'js/corpus-analysis/cqi/api/client.js',
|
||||
'js/corpus-analysis/cqi/models/index.js',
|
||||
'js/corpus-analysis/cqi/models/resource.js',
|
||||
'js/corpus-analysis/cqi/models/attributes.js',
|
||||
'js/corpus-analysis/cqi/models/subcorpora.js',
|
||||
'js/corpus-analysis/cqi/models/corpora.js',
|
||||
'js/corpus-analysis/cqi/client.js',
|
||||
'js/corpus-analysis/query-builder/index.js',
|
||||
'js/corpus-analysis/query-builder/element-references.js',
|
||||
'js/corpus-analysis/query-builder/general-query-builder-functions.js',
|
||||
'js/corpus-analysis/query-builder/structural-attribute-builder-functions.js',
|
||||
'js/corpus-analysis/query-builder/token-attribute-builder-functions.js',
|
||||
'js/corpus-analysis/app.js',
|
||||
'js/corpus-analysis/concordance-extension.js',
|
||||
'js/corpus-analysis/reader-extension.js',
|
||||
'js/corpus-analysis/static-visualization-extension.js'
|
||||
%}
|
||||
<script src="{{ ASSET_URL }}"></script>
|
||||
{%- endassets %}
|
||||
|
@ -128,7 +128,7 @@
|
||||
{# The extension scripts #}
|
||||
{% macro scripts() %}
|
||||
<script>
|
||||
const corpusAnalysisConcordance = new CorpusAnalysisConcordance(corpusAnalysisApp);
|
||||
const corpusAnalysisConcordance = new nopaque.corpus_analysis.ConcordanceExtension(corpusAnalysisApp);
|
||||
const concordanceQueryBuilder = new ConcordanceQueryBuilder();
|
||||
</script>
|
||||
{% endmacro %}
|
||||
|
@ -79,6 +79,6 @@
|
||||
{# The extension scripts #}
|
||||
{% macro scripts() %}
|
||||
<script>
|
||||
const corpusAnalysisReader = new CorpusAnalysisReader(corpusAnalysisApp);
|
||||
const corpusAnalysisReader = new nopaque.corpus_analysis.ReaderExtension(corpusAnalysisApp);
|
||||
</script>
|
||||
{% endmacro %}
|
||||
|
@ -158,7 +158,7 @@
|
||||
|
||||
{% macro scripts() %}
|
||||
<script>
|
||||
const corpusAnalysisStaticVisualization = new CorpusAnalysisStaticVisualization(corpusAnalysisApp);
|
||||
const corpusAnalysisStaticVisualization = new nopaque.corpus_analysis.StaticVisualizationExtension(corpusAnalysisApp);
|
||||
</script>
|
||||
{% endmacro %}
|
||||
|
@ -81,7 +81,7 @@
|
||||
{% block scripts %}
|
||||
{{ super() }}
|
||||
<script>
|
||||
const corpusAnalysisApp = new CorpusAnalysisApp({{ corpus.hashid|tojson }});
|
||||
const corpusAnalysisApp = new nopaque.corpus_analysis.App({{ corpus.hashid|tojson }});
|
||||
</script>
|
||||
|
||||
{{ concordance_extension.scripts() }}
|
||||
|
Loading…
Reference in New Issue
Block a user