diff --git a/Gemfile b/Gemfile index 237aca80985..905a8d683f0 100644 --- a/Gemfile +++ b/Gemfile @@ -275,10 +275,6 @@ group :development do gem 'spring' gem 'spring-commands-rspec' - # Gems for living styleguide - gem 'livingstyleguide', '~> 2.1.0' - gem 'sassc-rails' - # Lookbook gem 'lookbook', '~> 2.0.3' diff --git a/Gemfile.lock b/Gemfile.lock index d78d67c8ec8..f2a2ad4da1b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -378,11 +378,11 @@ GEM crack (0.4.5) rexml crass (1.0.6) + css_parser (1.14.0) + addressable cuprite (0.14.3) capybara (~> 3.0) ferrum (~> 0.13.0) - css_parser (1.14.0) - addressable daemons (1.4.1) dalli (3.2.5) date (3.3.3) @@ -586,12 +586,6 @@ GEM listen (3.8.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - livingstyleguide (2.1.0) - minisyntax (>= 0.2.5) - redcarpet - sassc - thor - tilt lobby_boy (0.1.3) omniauth (~> 1.1) omniauth-openid-connect (>= 0.2.1) @@ -634,7 +628,6 @@ GEM mini_magick (4.12.0) mini_mime (1.1.2) mini_portile2 (2.8.2) - minisyntax (0.2.5) minitest (5.18.1) msgpack (1.7.1) multi_json (1.15.0) @@ -888,14 +881,6 @@ GEM sanitize (6.0.2) crass (~> 1.0.2) nokogiri (>= 1.12.0) - sassc (2.4.0) - ffi (~> 1.9) - sassc-rails (2.1.2) - railties (>= 4.0.0) - sassc (>= 2.0) - sprockets (> 3.0) - sprockets-rails - tilt secure_headers (6.5.0) selenium-webdriver (4.10.0) rexml (~> 3.2, >= 3.2.5) @@ -943,7 +928,6 @@ GEM test-prof (1.2.2) text-hyphen (1.5.0) thor (1.2.2) - tilt (2.2.0) timecop (0.9.6) timeout (0.4.0) trailblazer-option (0.1.2) @@ -1073,7 +1057,6 @@ DEPENDENCIES lefthook letter_opener listen (~> 3.8.0) - livingstyleguide (~> 2.1.0) lograge (~> 0.12.0) lookbook (~> 2.0.3) mail (= 2.8.1) @@ -1156,7 +1139,6 @@ DEPENDENCIES ruby-progressbar (~> 1.13.0) rubytree (~> 2.0.0) sanitize (~> 6.0.2) - sassc-rails secure_headers (~> 6.5.0) selenium-webdriver (~> 4.0) semantic (~> 1.6.1) diff --git a/app/assets/stylesheets/styleguide.html.lsg b/app/assets/stylesheets/styleguide.html.lsg deleted file mode 100644 index 2a226583d5d..00000000000 --- a/app/assets/stylesheets/styleguide.html.lsg +++ /dev/null @@ -1 +0,0 @@ -@import ../../../frontend/src/global_styles/**/_*.lsg diff --git a/app/views/layouts/styleguide/styleguide.layout.html.erb b/app/views/layouts/styleguide/styleguide.layout.html.erb deleted file mode 100644 index bd344cd2c4e..00000000000 --- a/app/views/layouts/styleguide/styleguide.layout.html.erb +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - - - - - Living Style Guide for OpenProject - - - - - - - - - -
-
-

Living Style Guide

-
-
- - - -
-

 

-
-
- <%= html %> -
- - - diff --git a/config/initializers/livingstyleguide_patches.rb b/config/initializers/livingstyleguide_patches.rb deleted file mode 100644 index 9d27512defd..00000000000 --- a/config/initializers/livingstyleguide_patches.rb +++ /dev/null @@ -1,45 +0,0 @@ -#-- copyright -# OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version 3. -# -# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2013 Jean-Philippe Lang -# Copyright (C) 2010-2013 the ChiliProject Team -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# See COPYRIGHT and LICENSE files for more details. -#++ -# -if defined?(LivingStyleGuide) - ## - # Override CSS to never be called - module DocumentTemplatePatch - ## - # Define our own template - def template_erb - if @template == :layout - File.read(Rails.root.join('app/views/layouts/styleguide/styleguide.layout.html.erb')) - else - super - end - end - end - - LivingStyleGuide::Document.prepend DocumentTemplatePatch -end diff --git a/config/routes.rb b/config/routes.rb index 87f11ea3831..5c6e2ff3cd9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -601,9 +601,6 @@ OpenProject::Application.routes.draw do get 'callback', controller: 'oauth_clients', action: :callback end - # Routes for design related documentation and examples pages - get '/design/styleguide' => redirect('/assets/styleguide.html') - if Rails.env.development? mount Lookbook::Engine, at: "/design/lookbook" end diff --git a/frontend/src/app/spot/icon-font/openproject-icon-font.template.lsg b/frontend/src/app/spot/icon-font/openproject-icon-font.template.lsg deleted file mode 100644 index 4513ec99d9c..00000000000 --- a/frontend/src/app/spot/icon-font/openproject-icon-font.template.lsg +++ /dev/null @@ -1,9 +0,0 @@ -## OpenProject Icon Font - -*OpenProject Icon Font* for icons: - - diff --git a/frontend/src/global_styles/content/_accounts.lsg b/frontend/src/global_styles/content/_accounts.lsg deleted file mode 100644 index 129d9f09e37..00000000000 --- a/frontend/src/global_styles/content/_accounts.lsg +++ /dev/null @@ -1,22 +0,0 @@ -# Accounts - - -``` -
-

- or sign in with your existing account -

- -
- - Omniauth Developer - - - Omniauth Developer - - - Omniauth Developer - -
-
-``` diff --git a/frontend/src/global_styles/content/_copy_to_clipboard.lsg b/frontend/src/global_styles/content/_copy_to_clipboard.lsg deleted file mode 100644 index a6792e382c0..00000000000 --- a/frontend/src/global_styles/content/_copy_to_clipboard.lsg +++ /dev/null @@ -1,25 +0,0 @@ -# Copy to clipboard - -``` -
-
-
-

Toolbar

- -
-
-``` diff --git a/frontend/src/global_styles/content/_datepicker.lsg b/frontend/src/global_styles/content/_datepicker.lsg deleted file mode 100644 index d3b05f536a9..00000000000 --- a/frontend/src/global_styles/content/_datepicker.lsg +++ /dev/null @@ -1,6 +0,0 @@ -## Datepicker - -``` - - -``` diff --git a/frontend/src/global_styles/content/_icon_control.lsg b/frontend/src/global_styles/content/_icon_control.lsg deleted file mode 100644 index 60268af6c48..00000000000 --- a/frontend/src/global_styles/content/_icon_control.lsg +++ /dev/null @@ -1,55 +0,0 @@ -# Icon Controls - -``` -
- - - Star - - - Nur e kian landonomo, ol ind duona anstataŭa. -
-
- - - Unstar - - - Far ki aliam samideano noniliono. -
- -
- - - Watch - - - Περπετυα περσεκυερις υθ ηας -
-
- - - Unwatch - - - Ηας παρτεμ λεγενδως δεφινιθιονεμ νο, συμ ευ λαυδεμ εσεντ εκυιδεμ -
- -
- - - Group - - - Group -
-
- - - - - - Leave the Group -
- -``` diff --git a/frontend/src/global_styles/content/_in_place_editing.lsg b/frontend/src/global_styles/content/_in_place_editing.lsg deleted file mode 100644 index bc1d8a41dc6..00000000000 --- a/frontend/src/global_styles/content/_in_place_editing.lsg +++ /dev/null @@ -1,19 +0,0 @@ -# In place editing - -## In place editing: Title - -``` -
-
- -
- -
-
-
-
-``` diff --git a/frontend/src/global_styles/content/_info_boxes.lsg b/frontend/src/global_styles/content/_info_boxes.lsg deleted file mode 100644 index efbce59d68c..00000000000 --- a/frontend/src/global_styles/content/_info_boxes.lsg +++ /dev/null @@ -1,73 +0,0 @@ -# Info boxes - -## Simple info boxes -``` -
-

Heading

-
-
-

Box 1

-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

-
-
-
-

Box 2

-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

-
-
-
-

Box 3

-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

-
-
-
-
-``` - -## Centered with image and links -``` -
-

Heading

-
-
- -

Box 1

-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

- -
-
-
- -

Box 2

-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

- -
-
-
- -

Box 3

-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

- -
-
-
-
-``` \ No newline at end of file diff --git a/frontend/src/global_styles/content/_links.lsg b/frontend/src/global_styles/content/_links.lsg deleted file mode 100644 index 09821c9cbfb..00000000000 --- a/frontend/src/global_styles/content/_links.lsg +++ /dev/null @@ -1,16 +0,0 @@ -# Links - -``` -A normal link - -
- Sort link - Sort link -
- -#2999 open issue -#2999 closed issue - -  -  -``` diff --git a/frontend/src/global_styles/content/_simple_filters.lsg b/frontend/src/global_styles/content/_simple_filters.lsg deleted file mode 100644 index ef95f1c0747..00000000000 --- a/frontend/src/global_styles/content/_simple_filters.lsg +++ /dev/null @@ -1,100 +0,0 @@ -# Simple filters - - - -``` -@full-width - -
- - Simple Filters - -
-``` - -## Simple filters: With radio buttons - -``` -@full-width - -
- - Simple Filters - -
-``` diff --git a/frontend/src/global_styles/content/_slide_toggle.lsg b/frontend/src/global_styles/content/_slide_toggle.lsg deleted file mode 100644 index 071a7816975..00000000000 --- a/frontend/src/global_styles/content/_slide_toggle.lsg +++ /dev/null @@ -1,9 +0,0 @@ -# Slide toggle checkbox - -``` - - -``` diff --git a/frontend/src/global_styles/content/_tabular.lsg b/frontend/src/global_styles/content/_tabular.lsg deleted file mode 100644 index 38896277e94..00000000000 --- a/frontend/src/global_styles/content/_tabular.lsg +++ /dev/null @@ -1 +0,0 @@ -# Tabular diff --git a/frontend/src/global_styles/content/user-content/_user-content.lsg b/frontend/src/global_styles/content/user-content/_user-content.lsg deleted file mode 100644 index 7cb8e86126d..00000000000 --- a/frontend/src/global_styles/content/user-content/_user-content.lsg +++ /dev/null @@ -1,3 +0,0 @@ -# User Content - -## diff --git a/frontend/src/global_styles/content/work_packages/_table_content.lsg b/frontend/src/global_styles/content/work_packages/_table_content.lsg deleted file mode 100644 index ef12703a160..00000000000 --- a/frontend/src/global_styles/content/work_packages/_table_content.lsg +++ /dev/null @@ -1,171 +0,0 @@ -# Work packages table - -## with work packages - -``` -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - ID - - - - -
-
-
- - Subject - - - - -
-
-
- - Type - - - - -
-
-
- - Status - - - - -
-
-
- - Priority - - - - -
-
-
- - Assignee - - - - -
-
-
- - - -
-
- 1234 - - Lorem ipsum - - User Story -
-
- In Progress - - Normal - - John Doe - - - - - - - - - -
- 1234 - - Lorem ipsum - - User Story -
-
- In Progress - - Normal - - John Doe - - - - - - - - - -
- -
-
-``` - -## with no work packages - -``` -
-
- - - No work packages to display - -
-

Either none have been created or all work packages are filtered out.

-
-
-
-```