diff --git a/app/static/css/height.css b/app/static/css/height.css new file mode 100644 index 00000000..87c1252d --- /dev/null +++ b/app/static/css/height.css @@ -0,0 +1,47 @@ +.h-10 { + height: 10% !important; +} + +.h-20 { + height: 20% !important; +} + +.h-25 { + height: 25% !important; +} + +.h-30 { + height: 30% !important; +} + +.h-40 { + height: 40% !important; +} + +.h-50 { + height: 50% !important; +} + +.h-60 { + height: 60% !important; +} + +.h-70 { + height: 70% !important; +} + +.h-75 { + height: 75% !important; +} + +.h-80 { + height: 80% !important; +} + +.h-90 { + height: 90% !important; +} + +.h-100 { + height: 100% !important; +} diff --git a/app/static/css/width.css b/app/static/css/width.css new file mode 100644 index 00000000..b15abd06 --- /dev/null +++ b/app/static/css/width.css @@ -0,0 +1,47 @@ +.w-10 { + width: 10% !important; +} + +.w-20 { + width: 20% !important; +} + +.w-25 { + width: 25% !important; +} + +.w-30 { + width: 30% !important; +} + +.w-40 { + width: 40% !important; +} + +.w-50 { + width: 50% !important; +} + +.w-60 { + width: 60% !important; +} + +.w-70 { + width: 70% !important; +} + +.w-75 { + width: 75% !important; +} + +.w-80 { + width: 80% !important; +} + +.w-90 { + width: 90% !important; +} + +.w-100 { + width: 100% !important; +} diff --git a/app/templates/_base/dropdowns.html.j2 b/app/templates/_base/dropdowns.html.j2 new file mode 100644 index 00000000..c648235d --- /dev/null +++ b/app/templates/_base/dropdowns.html.j2 @@ -0,0 +1,60 @@ +{% if current_user.is_authenticated %} + +{% endif %} + +{% if current_user.is_authenticated %} + +{% endif %} diff --git a/app/templates/_base/footer.html.j2 b/app/templates/_base/footer.html.j2 new file mode 100644 index 00000000..9e755ec9 --- /dev/null +++ b/app/templates/_base/footer.html.j2 @@ -0,0 +1,45 @@ +
+
+ + + + +
+
Who made this?
+

+ This software is developed by the SFB 1288 INF project at Bielefeld University. + Thanks to all the people who made nopaque possible. + +

+
+ +
+
+
+ + + +
+
+
+ + diff --git a/app/templates/_base/icons.html.j2 b/app/templates/_base/icons.html.j2 new file mode 100644 index 00000000..f82a3958 --- /dev/null +++ b/app/templates/_base/icons.html.j2 @@ -0,0 +1 @@ + diff --git a/app/templates/_base/metas.html.j2 b/app/templates/_base/metas.html.j2 new file mode 100644 index 00000000..30185f8f --- /dev/null +++ b/app/templates/_base/metas.html.j2 @@ -0,0 +1,2 @@ + + diff --git a/app/templates/_base/modals.html.j2 b/app/templates/_base/modals.html.j2 new file mode 100644 index 00000000..a00efa3a --- /dev/null +++ b/app/templates/_base/modals.html.j2 @@ -0,0 +1,34 @@ +{% if current_user.is_authenticated and not current_user.terms_of_use_accepted %} + +{% endif %} diff --git a/app/templates/_base/navbar.html.j2 b/app/templates/_base/navbar.html.j2 new file mode 100644 index 00000000..00b64663 --- /dev/null +++ b/app/templates/_base/navbar.html.j2 @@ -0,0 +1,105 @@ + diff --git a/app/templates/_base/scripts.html.j2 b/app/templates/_base/scripts.html.j2 new file mode 100644 index 00000000..1f6d5af0 --- /dev/null +++ b/app/templates/_base/scripts.html.j2 @@ -0,0 +1,113 @@ + + + + + + +{% assets + filters='rjsmin', + output='gen/nopaque.%(version)s.js', + 'js/index.js', + 'js/app.js', + 'js/utils.js', + + 'js/forms/index.js', + 'js/forms/base-form.js', + 'js/forms/create-contribution-form.js', + 'js/forms/create-corpus-file-form.js', + 'js/forms/create-job-form.js', + + 'js/resource-displays/index.js', + 'js/resource-displays/resource-display.js', + 'js/resource-displays/corpus-display.js', + 'js/resource-displays/job-display.js', + + 'js/resource-lists/index.js', + 'js/resource-lists/resource-list.js', + 'js/resource-lists/admin-user-list.js', + 'js/resource-lists/corpus-file-list.js', + 'js/resource-lists/corpus-follower-list.js', + 'js/resource-lists/corpus-list.js', + 'js/resource-lists/corpus-text-info-list.js', + 'js/resource-lists/corpus-token-list.js', + 'js/resource-lists/detailed-public-corpus-list.js', + 'js/resource-lists/job-input-list.js', + 'js/resource-lists/job-list.js', + 'js/resource-lists/job-result-list.js', + 'js/resource-lists/public-corpus-list.js', + 'js/resource-lists/public-user-list.js', + 'js/resource-lists/spacy-nlp-pipeline-model-list.js', + 'js/resource-lists/tesseract-ocr-pipeline-model-list.js', + + 'js/requests/index.js', + 'js/requests/admin.js', + 'js/requests/contributions.js', + 'js/requests/corpora.js', + 'js/requests/jobs.js', + 'js/requests/users.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/query-builder.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' +-%} + +{% endassets -%} + + + + diff --git a/app/templates/_base/sidenav.html.j2 b/app/templates/_base/sidenav.html.j2 new file mode 100644 index 00000000..1d1a8e34 --- /dev/null +++ b/app/templates/_base/sidenav.html.j2 @@ -0,0 +1,123 @@ + diff --git a/app/templates/_base/stylesheets.html.j2 b/app/templates/_base/stylesheets.html.j2 new file mode 100644 index 00000000..46f08b54 --- /dev/null +++ b/app/templates/_base/stylesheets.html.j2 @@ -0,0 +1,23 @@ + +{% assets + output='gen/nopaque.%(version)s.css', + 'css/materialize.css', + 'css/materialize.override.css', + 'css/nopaque-icons.css', + 'css/theme-colors.css', + 'css/corpus-status-colors.css', + 'css/corpus-status-text.css', + 'css/height.css', + 'css/job-status-colors.css', + 'css/job-status-text.css', + 'css/service-colors.css', + 'css/pagination.css', + 'css/service-icons.css', + 'css/s-attr-colors.css', + 'css/spacing.css', + 'css/status-spinner.css', + 'css/utils.css', + 'css/width.css' +%} + +{% endassets %} diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2 index 9b304005..d08a189c 100644 --- a/app/templates/base.html.j2 +++ b/app/templates/base.html.j2 @@ -1,544 +1,78 @@ +{% if title is not defined %} + {% set title = 'nopaque' %} +{% endif %} + +{% block doc %} - - - - - - + + {% block html %} + + {% block head %} - {{ title if title is defined else 'nopaque' }} + {% block metas %} + {% include '_base/metas.html.j2' %} + {% endblock metas %} - + + {% block title %} + {{ title }} + {% endblock title %} + - - {% block stylesheets %} - - {% assets - output='gen/nopaque.%(version)s.css', - 'css/materialize.css', - 'css/materialize.override.css', - 'css/nopaque-icons.css', - 'css/theme-colors.css', - 'css/corpus-status-colors.css', - 'css/corpus-status-text.css', - 'css/job-status-colors.css', - 'css/job-status-text.css', - 'css/service-colors.css', - 'css/pagination.css', - 'css/service-icons.css', - 'css/s-attr-colors.css', - 'css/spacing.css', - 'css/status-spinner.css', - 'css/utils.css' - -%} - - {% endassets -%} - {% endblock stylesheets %} - + {% block icons %} + {% include '_base/icons.html.j2' %} + {% endblock icons %} + + {% block styles %} + {% include '_base/stylesheets.html.j2' %} + {% endblock styles %} + {% endblock head %} - -
- - - + {% endblock header %}
-
+
+ {% block main %} {% block page_content %}{% endblock page_content %} + {% endblock main %}
-