Move javascript files to fit new style

This commit is contained in:
Patrick Jentsch 2023-11-13 12:59:36 +01:00
parent 660d7ebc99
commit d298b200dc
27 changed files with 30 additions and 30 deletions

View File

@ -1,4 +1,4 @@
class CorpusAnalysisApp { nopaque.corpus_analysis.App = class App {
constructor(corpusId) { constructor(corpusId) {
this.corpusId = corpusId; this.corpusId = corpusId;

View File

@ -1,4 +1,4 @@
class CorpusAnalysisConcordance { nopaque.corpus_analysis.ConcordanceExtension = class ConcordanceExtension {
name = 'Concordance'; name = 'Concordance';
constructor(app) { constructor(app) {

View File

@ -1,4 +1,4 @@
class CorpusAnalysisReader { nopaque.corpus_analysis.ReaderExtension = class ReaderExtension {
name = 'Reader'; name = 'Reader';
constructor(app) { constructor(app) {

View File

@ -1,4 +1,4 @@
class CorpusAnalysisStaticVisualization { nopaque.corpus_analysis.StaticVisualizationExtension = class StaticVisualizationExtension {
name = 'Static Visualization (beta)'; name = 'Static Visualization (beta)';
constructor(app) { constructor(app) {

View File

@ -76,28 +76,28 @@
{%- assets {%- assets
filters='rjsmin', filters='rjsmin',
output='gen/corpus-analysis.%(version)s.js', output='gen/corpus-analysis.%(version)s.js',
'js/CorpusAnalysis/index.js', 'js/corpus-analysis/index.js',
'js/CorpusAnalysis/cqi/index.js', 'js/corpus-analysis/cqi/index.js',
'js/CorpusAnalysis/cqi/constants.js', 'js/corpus-analysis/cqi/constants.js',
'js/CorpusAnalysis/cqi/errors.js', 'js/corpus-analysis/cqi/errors.js',
'js/CorpusAnalysis/cqi/status.js', 'js/corpus-analysis/cqi/status.js',
'js/CorpusAnalysis/cqi/api/index.js', 'js/corpus-analysis/cqi/api/index.js',
'js/CorpusAnalysis/cqi/api/client.js', 'js/corpus-analysis/cqi/api/client.js',
'js/CorpusAnalysis/cqi/models/index.js', 'js/corpus-analysis/cqi/models/index.js',
'js/CorpusAnalysis/cqi/models/resource.js', 'js/corpus-analysis/cqi/models/resource.js',
'js/CorpusAnalysis/cqi/models/attributes.js', 'js/corpus-analysis/cqi/models/attributes.js',
'js/CorpusAnalysis/cqi/models/subcorpora.js', 'js/corpus-analysis/cqi/models/subcorpora.js',
'js/CorpusAnalysis/cqi/models/corpora.js', 'js/corpus-analysis/cqi/models/corpora.js',
'js/CorpusAnalysis/cqi/client.js', 'js/corpus-analysis/cqi/client.js',
'js/CorpusAnalysis/query-builder/index.js', 'js/corpus-analysis/query-builder/index.js',
'js/CorpusAnalysis/query-builder/element-references.js', 'js/corpus-analysis/query-builder/element-references.js',
'js/CorpusAnalysis/query-builder/general-query-builder-functions.js', 'js/corpus-analysis/query-builder/general-query-builder-functions.js',
'js/CorpusAnalysis/query-builder/structural-attribute-builder-functions.js', 'js/corpus-analysis/query-builder/structural-attribute-builder-functions.js',
'js/CorpusAnalysis/query-builder/token-attribute-builder-functions.js', 'js/corpus-analysis/query-builder/token-attribute-builder-functions.js',
'js/CorpusAnalysis/CorpusAnalysisApp.js', 'js/corpus-analysis/app.js',
'js/CorpusAnalysis/CorpusAnalysisConcordance.js', 'js/corpus-analysis/concordance-extension.js',
'js/CorpusAnalysis/CorpusAnalysisReader.js', 'js/corpus-analysis/reader-extension.js',
'js/CorpusAnalysis/CorpusAnalysisStaticVisualization.js' 'js/corpus-analysis/static-visualization-extension.js'
%} %}
<script src="{{ ASSET_URL }}"></script> <script src="{{ ASSET_URL }}"></script>
{%- endassets %} {%- endassets %}

View File

@ -128,7 +128,7 @@
{# The extension scripts #} {# The extension scripts #}
{% macro scripts() %} {% macro scripts() %}
<script> <script>
const corpusAnalysisConcordance = new CorpusAnalysisConcordance(corpusAnalysisApp); const corpusAnalysisConcordance = new nopaque.corpus_analysis.ConcordanceExtension(corpusAnalysisApp);
const concordanceQueryBuilder = new ConcordanceQueryBuilder(); const concordanceQueryBuilder = new ConcordanceQueryBuilder();
</script> </script>
{% endmacro %} {% endmacro %}

View File

@ -79,6 +79,6 @@
{# The extension scripts #} {# The extension scripts #}
{% macro scripts() %} {% macro scripts() %}
<script> <script>
const corpusAnalysisReader = new CorpusAnalysisReader(corpusAnalysisApp); const corpusAnalysisReader = new nopaque.corpus_analysis.ReaderExtension(corpusAnalysisApp);
</script> </script>
{% endmacro %} {% endmacro %}

View File

@ -158,7 +158,7 @@
{% macro scripts() %} {% macro scripts() %}
<script> <script>
const corpusAnalysisStaticVisualization = new CorpusAnalysisStaticVisualization(corpusAnalysisApp); const corpusAnalysisStaticVisualization = new nopaque.corpus_analysis.StaticVisualizationExtension(corpusAnalysisApp);
</script> </script>
{% endmacro %} {% endmacro %}

View File

@ -81,7 +81,7 @@
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<script> <script>
const corpusAnalysisApp = new CorpusAnalysisApp({{ corpus.hashid|tojson }}); const corpusAnalysisApp = new nopaque.corpus_analysis.App({{ corpus.hashid|tojson }});
</script> </script>
{{ concordance_extension.scripts() }} {{ concordance_extension.scripts() }}