From fea8c9bce9e135f69161d7b15411fdc7f35e0378 Mon Sep 17 00:00:00 2001 From: graham-dds Date: Tue, 19 Nov 2019 13:34:14 -0500 Subject: [PATCH] Remove developer styleguide from project Since we're actively moving our styles toward a pure of a USWDS implementation as possible, this styleguide page is becoming increasingly outdated. --- .secrets.baseline | 4 +- atst/routes/__init__.py | 5 - templates/styleguide.html | 377 -------------------------------------- tests/test_access.py | 1 - 4 files changed, 2 insertions(+), 385 deletions(-) delete mode 100644 templates/styleguide.html diff --git a/.secrets.baseline b/.secrets.baseline index 532960ab..9353d013 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "^.secrets.baseline$|^.*pgsslrootcert.yml$", "lines": null }, - "generated_at": "2019-11-12T21:42:30Z", + "generated_at": "2019-11-19T18:28:27Z", "plugins_used": [ { "base64_limit": 4.5, @@ -170,7 +170,7 @@ "hashed_secret": "e4f14805dfd1e6af030359090c535e149e6b4207", "is_secret": false, "is_verified": false, - "line_number": 657, + "line_number": 656, "type": "Hex High Entropy String" } ] diff --git a/atst/routes/__init__.py b/atst/routes/__init__.py index f2d6da13..9665ef9b 100644 --- a/atst/routes/__init__.py +++ b/atst/routes/__init__.py @@ -56,11 +56,6 @@ def home(): return render_template("home.html") -@bp.route("/styleguide") -def styleguide(): - return render_template("styleguide.html") - - @bp.route("/") def catch_all(path): try: diff --git a/templates/styleguide.html b/templates/styleguide.html deleted file mode 100644 index 31e028d5..00000000 --- a/templates/styleguide.html +++ /dev/null @@ -1,377 +0,0 @@ -{% extends "base.html" %} - -{% from "components/icon.html" import Icon %} -{% from "components/modal.html" import Modal %} -{% from "components/alert.html" import Alert %} -{% from "components/tooltip.html" import Tooltip %} - - -{% block content %} - - {% call Modal(name='styleguideModal', dismissable=True) %} -

A modal dialog

-
-

We count thirty Rebel ships, Lord Vader. But they're so small they're evading our turbo-lasers! We'll have to destroy them ship to ship. Get the crews to their fighters. Luke, let me know when you're going in. I'm on my way in now... Watch yourself! There's a lot of fire coming from the right side of that deflection tower. I'm on it. Squad leaders, we've picked up a new group of signals. Enemy fighters coming your way.

-

I hope the old man got that tractor beam out if commission, or this is going to be a real short trip. Okay, hit it! We're coming up on the sentry ships. Hold 'em off! Angle the deflector shields while I charge up the main guns! I can't believe he's gone. There wasn't anything you could have done. Come on, buddy, we're not out of this yet! You in, kid? Okay, stay sharp!

- - - {% endcall %} - - -{{ Alert('A Warning Alert', - message="\ -

This is a message. It is a very important message. Please note, proper semantic markup is required here, such as paragraph tags. Don't omit paragraph tags!

\ -

Also note the same for actions below. You'll need to include the full link markup.

\ - ", - actions='Open a Modal Dialog', - level='warning' -) }} - -{{ Alert('A Success Alert', - message="

Congratulations! You did a thing.

", - level='success' -) }} - -{{ Alert('An Error Alert', - message="

Booooo. You're the worst.

", - level='error' -) }} - -{{ Alert('An Info Alert', - message="

The more you know.

" -) }} - - - -
- - - - - - - -
-
- This is a panel content -

Heading H1

-

Heading H2

-

Heading H3

-

Heading H4

-
Heading H5
-
Heading H6
- -

This is a paragraph. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

- - -
-
col 1
-
col 2
-
col 3
-
col 4
-
-
-
-
col 1
-
col 2
-
col 3
-
col 4
-
col 5
-
col 6
-
col 7
-
col 8
-
col 9
-
col 10
-
col 11
-
col 12
-
- -
- -
- - - Oh boy you really screwed up big time, didn't you! -
- -
- - - Oh boy you really screwed up big time, didn't you! -
- -
- - -
- -
- - -
- -
- - -
- -
-
-
-
- Checkboxes - - - - - - - - -
-
-
- -
-
-
- Inline Checkboxes {{ Icon('alert') }} - - - - - - - - - - This is an error -
-
-
-
- -
-
-
-
- Problem Radio Buttons {{ Icon('alert') }} - - - - - - - - - - - This is an error -
-
-
- -
-
-
- Radio Buttons - - - - - - - - - -
-
-
-
- -
-
-
- -
-
-
Tooltips
- {{ Tooltip('this is a tooltip text') }}default
- {{ Icon('help') }}top-start
- {{ Icon('help') }}right
- {{ Icon('help') }}bottom
-
-
- -
-
-
Labels
- Label - Label Info - Label Warning - Label Error - Label Success -
-
- -
- Another panel without padding -
- -
-
-
Icons
- {{ Icon('trash') }} 'trash'    - {{ Icon('document') }} 'document'    - {{ Icon('cloud') }} 'cloud'    - {{ Icon('chart') }} 'chart'    - {{ Icon('caret_up') }} 'caret_up'    - {{ Icon('caret_down') }} 'caret_down'    - {{ Icon('caret_right') }} 'caret_right'    - {{ Icon('caret_left') }} 'caret_left'    - {{ Icon('x') }} 'x'    - {{ Icon('search') }} 'search'    - {{ Icon('avatar') }} 'avatar'    - {{ Icon('download') }} 'download'    - {{ Icon('briefcase') }} 'briefcase'    - {{ Icon('bell') }} 'bell'    - {{ Icon('folder') }} 'folder'    - {{ Icon('help') }} 'help'    - {{ Icon('shield') }} 'shield'    - {{ Icon('info') }} 'info'    - {{ Icon('alert') }} 'alert'    - {{ Icon('link') }} 'link'    - {{ Icon('ok') }} 'ok'    - {{ Icon('checkmark') }} 'checkmark'    - {{ Icon('arrow-right') }} 'arrow-right'    - {{ Icon('arrow-down') }} 'arrow-down'    - {{ Icon('logout') }} 'logout'    - {{ Icon('time') }} 'time'    -
-
- -
-
-

A Block List

-
-
    -
  • Block List Item
  • -
  • Block List Item
  • -
  • Block List Item
  • -
  • Block List Item
  • -
  • Block List Item
  • -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expanded ColumnHidden on SmallRight AlignedShrunk
Table CellTable Cell1,234.56Table Cell
Table CellTable Cell1,231,253.43Table Cell
Table CellTable Cell564.54Table Cell
-
- - -
-{% endblock %} diff --git a/tests/test_access.py b/tests/test_access.py index 24d2d8a9..8f3d201f 100644 --- a/tests/test_access.py +++ b/tests/test_access.py @@ -21,7 +21,6 @@ _NO_ACCESS_CHECK_REQUIRED = _NO_LOGIN_REQUIRED + [ "atst.csp_environment_access", # internal redirect "atst.home", # available to all users "atst.jedi_csp_calculator", # internal redirect - "atst.styleguide", # dev reference "dev.messages", # dev tool "dev.test_email", # dev tool "portfolios.accept_invitation", # available to all users; access control is built into invitation logic