Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup annotate #1557

Merged
merged 3 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ PLATFORMS
arm64-darwin-23
x86_64-darwin-21
x86_64-darwin-22
x86_64-darwin-23
x86_64-linux

DEPENDENCIES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ class Admin::Communication::Blocks::HeadingsController < Admin::Communication::B
through_association: :communication_block_headings

def reorder
parent_id = params[:heading]
ids = params[:ids] || []
ids.each.with_index do |id, index|
@heading = current_university.communication_block_headings.find(id)
@heading.update_columns parent_id: parent_id,
parent_id: nil,
@heading.update_columns parent_id: nil,
level: Communication::Block::Heading::DEFAULT_LEVEL,
position: index + 1
end
Expand Down
57 changes: 29 additions & 28 deletions app/models/communication/extranet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,35 @@
#
# Table name: communication_extranets
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# color :string
# cookies_policy :text
# css :text
# feature_alumni :boolean default(FALSE)
# feature_contacts :boolean default(FALSE)
# feature_jobs :boolean default(FALSE)
# feature_library :boolean default(FALSE)
# feature_posts :boolean default(FALSE)
# has_sso :boolean default(FALSE)
# home_sentence :text
# host :string
# name :string
# privacy_policy :text
# registration_contact :string
# sass :text
# sso_button_label :string
# sso_cert :text
# sso_mapping :jsonb
# sso_name_identifier_format :string
# sso_provider :integer default("saml")
# sso_target_url :string
# terms :text
# created_at :datetime not null
# updated_at :datetime not null
# about_id :uuid indexed => [about_type]
# university_id :uuid not null, indexed
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# allow_experiences_modification :boolean default(TRUE)
# color :string
# cookies_policy :text
# css :text
# feature_alumni :boolean default(FALSE)
# feature_contacts :boolean default(FALSE)
# feature_jobs :boolean default(FALSE)
# feature_library :boolean default(FALSE)
# feature_posts :boolean default(FALSE)
# has_sso :boolean default(FALSE)
# home_sentence :text
# host :string
# name :string
# privacy_policy :text
# registration_contact :string
# sass :text
# sso_button_label :string
# sso_cert :text
# sso_mapping :jsonb
# sso_name_identifier_format :string
# sso_provider :integer default("saml")
# sso_target_url :string
# terms :text
# created_at :datetime not null
# updated_at :datetime not null
# about_id :uuid indexed => [about_type]
# university_id :uuid not null, indexed
#
# Indexes
#
Expand Down
53 changes: 0 additions & 53 deletions app/models/communication/website/configs/base.rb
Original file line number Diff line number Diff line change
@@ -1,56 +1,3 @@
# == Schema Information
#
# Table name: communication_websites
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# access_token :string
# autoupdate_theme :boolean default(TRUE)
# default_time_zone :string
# deployment_status_badge :text
# deuxfleurs_hosting :boolean default(TRUE)
# deuxfleurs_identifier :string
# feature_agenda :boolean default(FALSE)
# feature_posts :boolean default(TRUE)
# git_branch :string
# git_endpoint :string
# git_provider :integer default("github")
# in_production :boolean default(FALSE)
# name :string
# plausible_url :string
# repository :string
# social_email :string
# social_facebook :string
# social_github :string
# social_instagram :string
# social_linkedin :string
# social_mastodon :string
# social_peertube :string
# social_tiktok :string
# social_vimeo :string
# social_x :string
# social_youtube :string
# style :text
# style_updated_at :date
# theme_version :string default("NA")
# url :string
# created_at :datetime not null
# updated_at :datetime not null
# about_id :uuid indexed => [about_type]
# default_language_id :uuid not null, indexed
# university_id :uuid not null, indexed
#
# Indexes
#
# index_communication_websites_on_about (about_type,about_id)
# index_communication_websites_on_default_language_id (default_language_id)
# index_communication_websites_on_university_id (university_id)
#
# Foreign Keys
#
# fk_rails_2b6d929310 (default_language_id => languages.id)
# fk_rails_bb6a496c08 (university_id => universities.id)
#
class Communication::Website::Configs::Base < Communication::Website

def self.polymorphic_name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,56 +1,3 @@
# == Schema Information
#
# Table name: communication_websites
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# access_token :string
# autoupdate_theme :boolean default(TRUE)
# default_time_zone :string
# deployment_status_badge :text
# deuxfleurs_hosting :boolean default(TRUE)
# deuxfleurs_identifier :string
# feature_agenda :boolean default(FALSE)
# feature_posts :boolean default(TRUE)
# git_branch :string
# git_endpoint :string
# git_provider :integer default("github")
# in_production :boolean default(FALSE)
# name :string
# plausible_url :string
# repository :string
# social_email :string
# social_facebook :string
# social_github :string
# social_instagram :string
# social_linkedin :string
# social_mastodon :string
# social_peertube :string
# social_tiktok :string
# social_vimeo :string
# social_x :string
# social_youtube :string
# style :text
# style_updated_at :date
# theme_version :string default("NA")
# url :string
# created_at :datetime not null
# updated_at :datetime not null
# about_id :uuid indexed => [about_type]
# default_language_id :uuid not null, indexed
# university_id :uuid not null, indexed
#
# Indexes
#
# index_communication_websites_on_about (about_type,about_id)
# index_communication_websites_on_default_language_id (default_language_id)
# index_communication_websites_on_university_id (university_id)
#
# Foreign Keys
#
# fk_rails_2b6d929310 (default_language_id => languages.id)
# fk_rails_bb6a496c08 (university_id => universities.id)
#
class Communication::Website::Configs::DefaultContentSecurityPolicy < Communication::Website::Configs::Base

def self.polymorphic_name
Expand Down
53 changes: 0 additions & 53 deletions app/models/communication/website/configs/default_languages.rb
Original file line number Diff line number Diff line change
@@ -1,56 +1,3 @@
# == Schema Information
#
# Table name: communication_websites
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# access_token :string
# autoupdate_theme :boolean default(TRUE)
# default_time_zone :string
# deployment_status_badge :text
# deuxfleurs_hosting :boolean default(TRUE)
# deuxfleurs_identifier :string
# feature_agenda :boolean default(FALSE)
# feature_posts :boolean default(TRUE)
# git_branch :string
# git_endpoint :string
# git_provider :integer default("github")
# in_production :boolean default(FALSE)
# name :string
# plausible_url :string
# repository :string
# social_email :string
# social_facebook :string
# social_github :string
# social_instagram :string
# social_linkedin :string
# social_mastodon :string
# social_peertube :string
# social_tiktok :string
# social_vimeo :string
# social_x :string
# social_youtube :string
# style :text
# style_updated_at :date
# theme_version :string default("NA")
# url :string
# created_at :datetime not null
# updated_at :datetime not null
# about_id :uuid indexed => [about_type]
# default_language_id :uuid not null, indexed
# university_id :uuid not null, indexed
#
# Indexes
#
# index_communication_websites_on_about (about_type,about_id)
# index_communication_websites_on_default_language_id (default_language_id)
# index_communication_websites_on_university_id (university_id)
#
# Foreign Keys
#
# fk_rails_2b6d929310 (default_language_id => languages.id)
# fk_rails_bb6a496c08 (university_id => universities.id)
#
class Communication::Website::Configs::DefaultLanguages < Communication::Website::Configs::Base

def self.polymorphic_name
Expand Down
53 changes: 0 additions & 53 deletions app/models/communication/website/configs/default_permalinks.rb
Original file line number Diff line number Diff line change
@@ -1,56 +1,3 @@
# == Schema Information
#
# Table name: communication_websites
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# access_token :string
# autoupdate_theme :boolean default(TRUE)
# default_time_zone :string
# deployment_status_badge :text
# deuxfleurs_hosting :boolean default(TRUE)
# deuxfleurs_identifier :string
# feature_agenda :boolean default(FALSE)
# feature_posts :boolean default(TRUE)
# git_branch :string
# git_endpoint :string
# git_provider :integer default("github")
# in_production :boolean default(FALSE)
# name :string
# plausible_url :string
# repository :string
# social_email :string
# social_facebook :string
# social_github :string
# social_instagram :string
# social_linkedin :string
# social_mastodon :string
# social_peertube :string
# social_tiktok :string
# social_vimeo :string
# social_x :string
# social_youtube :string
# style :text
# style_updated_at :date
# theme_version :string default("NA")
# url :string
# created_at :datetime not null
# updated_at :datetime not null
# about_id :uuid indexed => [about_type]
# default_language_id :uuid not null, indexed
# university_id :uuid not null, indexed
#
# Indexes
#
# index_communication_websites_on_about (about_type,about_id)
# index_communication_websites_on_default_language_id (default_language_id)
# index_communication_websites_on_university_id (university_id)
#
# Foreign Keys
#
# fk_rails_2b6d929310 (default_language_id => languages.id)
# fk_rails_bb6a496c08 (university_id => universities.id)
#
class Communication::Website::Configs::DefaultPermalinks < Communication::Website::Configs::Base

def self.polymorphic_name
Expand Down
53 changes: 0 additions & 53 deletions app/models/communication/website/configs/deuxfleurs_workflow.rb
Original file line number Diff line number Diff line change
@@ -1,56 +1,3 @@
# == Schema Information
#
# Table name: communication_websites
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# access_token :string
# autoupdate_theme :boolean default(TRUE)
# default_time_zone :string
# deployment_status_badge :text
# deuxfleurs_hosting :boolean default(TRUE)
# deuxfleurs_identifier :string
# feature_agenda :boolean default(FALSE)
# feature_posts :boolean default(TRUE)
# git_branch :string
# git_endpoint :string
# git_provider :integer default("github")
# in_production :boolean default(FALSE)
# name :string
# plausible_url :string
# repository :string
# social_email :string
# social_facebook :string
# social_github :string
# social_instagram :string
# social_linkedin :string
# social_mastodon :string
# social_peertube :string
# social_tiktok :string
# social_vimeo :string
# social_x :string
# social_youtube :string
# style :text
# style_updated_at :date
# theme_version :string default("NA")
# url :string
# created_at :datetime not null
# updated_at :datetime not null
# about_id :uuid indexed => [about_type]
# default_language_id :uuid not null, indexed
# university_id :uuid not null, indexed
#
# Indexes
#
# index_communication_websites_on_about (about_type,about_id)
# index_communication_websites_on_default_language_id (default_language_id)
# index_communication_websites_on_university_id (university_id)
#
# Foreign Keys
#
# fk_rails_2b6d929310 (default_language_id => languages.id)
# fk_rails_bb6a496c08 (university_id => universities.id)
#
class Communication::Website::Configs::DeuxfleursWorkflow < Communication::Website::Configs::Base

def self.polymorphic_name
Expand Down
Loading
Loading