Skip to content

Commit

Permalink
Merge branch 'task/GH-101-header-redesign' into task/GH-101-header-re…
Browse files Browse the repository at this point in the history
…design--mobile-nav-layout-2
  • Loading branch information
wesleyboar committed Sep 23, 2021
2 parents c738a6a + b786c3c commit 403567c
Show file tree
Hide file tree
Showing 25 changed files with 353 additions and 595 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Version Control
.git

**settings_local.py

# Python
*.pyc
*.pyo
Expand Down
9 changes: 0 additions & 9 deletions .env.sample

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ repo_name.var
settings.json
taccsite_cms/secrets.py
*.custom.yml
*settings_custom*.py
*settings_local*.py

# Makefile var
cms_name.var
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ WORKDIR /code
RUN pip3 install --no-cache-dir -r requirements.txt

# build assets
RUN npm ci && npm run settings && npm run build
RUN npm ci && npm run build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The TACC CORE-CMS can be run using Docker and Docker Compose, both locally and i
CUSTOM_ASSET_DIR=example-cms
```

\* Where `example-cms` is the project to be run. _See [(Optional) Custom Resources per CMS Project](#optional-custom-resources-per-cms-project). Refer to `.env.sample` for other settings._
\* Where `example-cms` is the project to be run. _See [(Optional) Custom Resources per CMS Project](#optional-custom-resources-per-cms-project)._
1. Initialize / Update submodules.
1. `git submodule init`\
_(Adds `cms-site-resources` repo as submodule at `taccsite_custom/`. Only necessary once per `CORE-cms` repo clone.)_
Expand Down
1 change: 1 addition & 0 deletions conf/css/.postcssrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ plugins:
postcss-preset-env:
# SEE: https://github.com/csstools/postcss-preset-env#features
stage: false
# SEE: https://github.com/csstools/postcss-preset-env/blob/master/src/lib/plugins-by-id.js#L35
features:
custom-media-queries: true
media-query-ranges: true
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"license": "MIT",
"description": "The core CMS codebase for all new and updated TACC CMS sites.",
"scripts": {
"prebuild": "python3 taccsite_cms/settings_to_json.py",
"build": "npm run build:css",
"build:css": "npm run settings && node postcss.js",
"watch": "npm-watch",
"settings": "python3 taccsite_cms/settings_to_json.py"
"build:css": "node postcss.js",
"watch": "npm-watch"
},
"// scripts": {
"prebuild": "Export Django settings to JSON (for Node to use)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# SEE: https://github.com/django-cms/djangocms-bootstrap4/pull/138
import copy

from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext as _

from cms.plugin_pool import plugin_pool

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# FAQ: Bootstrap Image plugin has features not desirable in TACC plugins
# FAQ: We must not break sites that already use Bootstrap Image plugin
try:
from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext as _

from cms.plugin_pool import plugin_pool

Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/contrib/taccsite_data_list/cms_plugins.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext as _

from taccsite_cms.contrib.constants import TEXT_FOR_NESTED_PLUGIN_CONTENT_SWAP
from taccsite_cms.contrib.helpers import concat_classnames
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/contrib/taccsite_data_list/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from cms.models.pluginmodel import CMSPlugin

from django.db import models
from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext as _

from djangocms_attributes_field import fields

Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/contrib/taccsite_sample/cms_plugins.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cms.models.pluginmodel import CMSPlugin
from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext as _
from django.utils.encoding import force_text

from .models import TaccsiteSample
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext as _

from taccsite_cms.contrib.helpers import concat_classnames

Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/contrib/taccsite_system_monitor/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from cms.models.pluginmodel import CMSPlugin
from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext as _

from django.db import models

Expand Down
Loading

0 comments on commit 403567c

Please sign in to comment.