From dee672cdf160565ea295981c2e5de970ed4711e1 Mon Sep 17 00:00:00 2001 From: mnyrop Date: Wed, 3 Apr 2024 17:25:27 -0400 Subject: [PATCH] freeze 2 --- Gemfile | 21 ++--- Gemfile.lock | 154 +++++++++++++++++++++++++------------ _config.yml | 53 ++----------- _includes/site-header.html | 9 +++ account-create.md | 31 ++++++++ account-freeze.md | 23 ++++++ assets/create-script.js | 31 ++++++++ assets/freeze-script.js | 17 ++++ assets/script.js | 31 -------- index.md | 32 +++----- 10 files changed, 238 insertions(+), 164 deletions(-) create mode 100644 _includes/site-header.html create mode 100644 account-create.md create mode 100644 account-freeze.md create mode 100644 assets/create-script.js create mode 100644 assets/freeze-script.js delete mode 100644 assets/script.js diff --git a/Gemfile b/Gemfile index 4b6107a..26870ca 100644 --- a/Gemfile +++ b/Gemfile @@ -1,19 +1,8 @@ source 'https://rubygems.org' -# Hello! This is where you manage which Jekyll version is used to run. -# When you want to use a different version, change it below, save the -# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: -# -# bundle exec jekyll serve -# -# This will help ensure the proper Jekyll version is running. -# Happy Jekylling! -gem 'jekyll', '~> 4.0.0' -# This is the default theme for new Jekyll sites. You may change this to anything you like. -gem 'minima', '~> 2.5' -# If you want to use GitHub Pages, remove the 'gem 'jekyll'' above and -# uncomment the line below. To upgrade, run `bundle update github-pages`. -# gem 'github-pages', group: :jekyll_plugins -# If you have any plugins, put them here! + +gem 'jekyll' + group :jekyll_plugins do - gem 'jekyll-feed', '~> 0.12' + gem 'jekyll-feed' + gem 'jekyll-remote-theme' end diff --git a/Gemfile.lock b/Gemfile.lock index 7ff28a4..79bc6d3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,84 +1,138 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.7.0) - public_suffix (>= 2.0.2, < 5.0) + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) colorator (1.1.0) - concurrent-ruby (1.1.5) - em-websocket (0.5.1) + concurrent-ruby (1.2.3) + em-websocket (0.5.3) eventmachine (>= 0.12.9) - http_parser.rb (~> 0.6.0) + http_parser.rb (~> 0) eventmachine (1.2.7) - ffi (1.11.2) + ffi (1.16.3) forwardable-extended (2.6.0) - http_parser.rb (0.6.0) - i18n (1.7.0) + google-protobuf (4.26.1) + rake (>= 13) + google-protobuf (4.26.1-aarch64-linux) + rake (>= 13) + google-protobuf (4.26.1-arm64-darwin) + rake (>= 13) + google-protobuf (4.26.1-x86-linux) + rake (>= 13) + google-protobuf (4.26.1-x86_64-darwin) + rake (>= 13) + google-protobuf (4.26.1-x86_64-linux) + rake (>= 13) + http_parser.rb (0.8.0) + i18n (1.14.4) concurrent-ruby (~> 1.0) - jekyll (4.0.0) + jekyll (4.3.3) addressable (~> 2.4) colorator (~> 1.0) em-websocket (~> 0.5) - i18n (>= 0.9.5, < 2) - jekyll-sass-converter (~> 2.0) + i18n (~> 1.0) + jekyll-sass-converter (>= 2.0, < 4.0) jekyll-watch (~> 2.0) - kramdown (~> 2.1) + kramdown (~> 2.3, >= 2.3.1) kramdown-parser-gfm (~> 1.0) liquid (~> 4.0) - mercenary (~> 0.3.3) + mercenary (>= 0.3.6, < 0.5) pathutil (~> 0.9) - rouge (~> 3.0) + rouge (>= 3.0, < 5.0) safe_yaml (~> 1.0) - terminal-table (~> 1.8) - jekyll-feed (0.12.1) + terminal-table (>= 1.8, < 4.0) + webrick (~> 1.7) + jekyll-feed (0.17.0) jekyll (>= 3.7, < 5.0) - jekyll-sass-converter (2.0.1) - sassc (> 2.0.1, < 3.0) - jekyll-seo-tag (2.6.1) - jekyll (>= 3.3, < 5.0) + jekyll-remote-theme (0.4.3) + addressable (~> 2.0) + jekyll (>= 3.5, < 5.0) + jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0) + rubyzip (>= 1.3.0, < 3.0) + jekyll-sass-converter (3.0.0) + sass-embedded (~> 1.54) jekyll-watch (2.2.1) listen (~> 3.0) - kramdown (2.1.0) + kramdown (2.4.0) + rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - liquid (4.0.3) - listen (3.2.0) + liquid (4.0.4) + listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - mercenary (0.3.6) - minima (2.5.1) - jekyll (>= 3.5, < 5.0) - jekyll-feed (~> 0.9) - jekyll-seo-tag (~> 2.1) + mercenary (0.4.0) pathutil (0.16.2) forwardable-extended (~> 2.6) - public_suffix (4.0.1) - rb-fsevent (0.10.3) - rb-inotify (0.10.0) + public_suffix (5.0.5) + rake (13.2.0) + rb-fsevent (0.11.2) + rb-inotify (0.10.1) ffi (~> 1.0) - rouge (3.13.0) + rexml (3.2.6) + rouge (4.2.1) + rubyzip (2.3.2) safe_yaml (1.0.5) - sassc (2.2.1) - ffi (~> 1.9) - terminal-table (1.8.0) - unicode-display_width (~> 1.1, >= 1.1.1) - thread_safe (0.3.6) - tzinfo (1.2.5) - thread_safe (~> 0.1) - tzinfo-data (1.2019.3) - tzinfo (>= 1.0.0) - unicode-display_width (1.6.0) - wdm (0.1.1) + sass-embedded (1.72.0) + google-protobuf (>= 3.25, < 5.0) + rake (>= 13.0.0) + sass-embedded (1.72.0-aarch64-linux-android) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-aarch64-linux-gnu) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-aarch64-linux-musl) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-arm-linux-androideabi) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-arm-linux-gnueabihf) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-arm-linux-musleabihf) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-arm64-darwin) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-x86-linux-android) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-x86-linux-gnu) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-x86-linux-musl) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-x86_64-darwin) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-x86_64-linux-android) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-x86_64-linux-gnu) + google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.72.0-x86_64-linux-musl) + google-protobuf (>= 3.25, < 5.0) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) + unicode-display_width (2.5.0) + webrick (1.8.1) PLATFORMS + aarch64-linux + aarch64-linux-android + aarch64-linux-gnu + aarch64-linux-musl + arm-linux-androideabi + arm-linux-gnueabihf + arm-linux-musleabihf + arm64-darwin ruby + x86-linux + x86-linux-android + x86-linux-gnu + x86-linux-musl + x86_64-darwin + x86_64-linux + x86_64-linux-android + x86_64-linux-gnu + x86_64-linux-musl DEPENDENCIES - jekyll (~> 4.0.0) - jekyll-feed (~> 0.12) - minima (~> 2.5) - tzinfo (~> 1.2) - tzinfo-data - wdm (~> 0.1.1) + jekyll + jekyll-feed + jekyll-remote-theme BUNDLED WITH - 1.17.3 + 2.5.7 diff --git a/_config.yml b/_config.yml index 87c0f72..ede7485 100644 --- a/_config.yml +++ b/_config.yml @@ -1,49 +1,12 @@ -# Welcome to Jekyll! -# -# This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely edit after that. If you find -# yourself editing this file very often, consider using Jekyll's data files -# feature for the data you need to update frequently. -# -# For technical reasons, this file is *NOT* reloaded automatically when you use -# 'bundle exec jekyll serve'. If you change this file, please restart the server process. -# -# If you need help with YAML syntax, here are some quick references for you: -# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml -# https://learnxinyminutes.com/docs/yaml/ -# -# Site settings -# These are used to personalize your new site. If you look in the HTML files, -# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. -# You can create any custom variable you would like, and they will be accessible -# in the templates via {{ site.myvariable }}. - -title: nyuwh reply-for-me +title: "{% nyu wh templater %}" description: '' -baseurl: '/wh-reply' # the subpath of your site, e.g. /blog -url: '' # the base hostname & protocol for your site, e.g. http://example.com +baseurl: '/wh-reply' +url: '' +logo: '/assets/logo.svg' -# Build settings -theme: minima +remote_theme: daviddarnes/garth plugins: - jekyll-feed - -# Exclude from processing. -# The following items will not be processed, by default. -# Any item listed under the `exclude:` key here will be automatically added to -# the internal "default list". -# -# Excluded items can be processed by explicitly listing the directories or -# their entries' file path in the `include:` list. -# -# exclude: -# - .sass-cache/ -# - .jekyll-cache/ -# - gemfiles/ -# - Gemfile -# - Gemfile.lock -# - node_modules/ -# - vendor/bundle/ -# - vendor/cache/ -# - vendor/gems/ -# - vendor/ruby/ + - jekyll-remote-theme +sass: + quiet_deps: true \ No newline at end of file diff --git a/_includes/site-header.html b/_includes/site-header.html new file mode 100644 index 0000000..c2f90d0 --- /dev/null +++ b/_includes/site-header.html @@ -0,0 +1,9 @@ +
+
+ +
{{ site.title }}
+
+ {% include site-nav.html %} + +
+
\ No newline at end of file diff --git a/account-create.md b/account-create.md new file mode 100644 index 0000000..c5b9d29 --- /dev/null +++ b/account-create.md @@ -0,0 +1,31 @@ +--- +layout: page +title: New Account Creation +--- + + + + +
+
+
Student or temporary affiliate?
+ +
+
+
Include SSH/FTP info?
+ +
+
+
Their first name
+ +
+ +
+ +
+ +
+
+ + + diff --git a/account-freeze.md b/account-freeze.md new file mode 100644 index 0000000..4d2982e --- /dev/null +++ b/account-freeze.md @@ -0,0 +1,23 @@ +--- +layout: page +title: New Account Freeze +--- + + + + +
+
+
Their first name
+ +
+ +
+ +
+ +
+
+ + + diff --git a/assets/create-script.js b/assets/create-script.js new file mode 100644 index 0000000..ef4597e --- /dev/null +++ b/assets/create-script.js @@ -0,0 +1,31 @@ +var temp_preface = "I've created your account for you, and have included some information below about the service and how to get started. Before you begin, however, I do want to let you know that our Terms of Service state that you will lose access to your site after you leave NYU. If you would like to keep your site online after your NYU NetID expires, there are several options outlined on this page. But I wanted to let you know about this before you create your site, so that you can decide whether it's better to host your site with a different hosting service where this won't be an issue.

"; + +var notemp_preface = "I've created your account for you, and have included some information below about the service and how to get started. Before you begin, however, I do want to let you know that our Terms of Service state that the service is offered \"as is\": We are unable to provide professional-level service and strongly encourage you to pursue other hosting options if your use case is not for personal research and/or requires high levels of uptime, compute power, or troubleshooting help.

"; + +var login = "The next step is to login with your NYU netID and password at https://hosting.nyu.edu/dashboard/. You will then be prompted to create a URL for your site. The URL will follow this formula: _____.hosting.nyu.edu, and you will need to choose something to fill in the blank. For example, I might use my last name to fill in the blank. Think carefully about what you choose to fill in the blank because this name can’t be changed! Also, please note that this URL will form the root for all subsequent sites that you might create under your account (e.g., _____.hosting.nyu.edu/blog1, _____.hosting.nyu.edu/blog2)

The Web Hosting team will provide support for basic technical issues (e.g. assistance resetting passwords, resolving network outages), but we’re unable to provide support for the site customizations (customizing themes, PHP or CSS modification, etc). Our vendor, Reclaim Hosting, has a robust knowledge base site, which you can access at https://community.reclaimhosting.com/.

"; + +var accessibility = "Please note that NYU is committed to accessibility and adheres to the World Wide Web Consortium’s Web Content Accessibility Guidelines (WCAG) 2.1 AA standards. Digital accessibility is the practice of ensuring that NYU websites, web applications, and digital content can be used by our community who have a diverse range of hearing, movement, sight or cognitive abilities. You are responsible for creating content that complies with these criteria.

While accessibility is necessary for some groups to use the web, it is beneficial for everyone. Below are some resources to assist you in creating an accessible website."; + +var sshinfo = "When you have been granted access to NYU Hosting, you will receive an email with SSH/FTP credentials with the subject line, \"New Account Information.\" Accessing the server/backend can be useful if you have to transfer many files over to your server space quickly using an FTP program. You can also access the backend via the cPanel.

"; + +var signoff ="Best,
NYU DSS and Web Hosting" + +$(document).ready(function() { + $("#submit").click(function() { + $('#txt').empty(); + + var data = {}; + $('#form').serializeArray().map(function(x){data[x.name] = x.value;}); + + var result = "Hi " + data.name + ",

"; + if ('temp' in data) { result += temp_preface } + else { result += notemp_preface } + result += login + accessibility; + if ('ssh' in data) { result += sshinfo } + result += signoff; + $('#txt').append(result); + }); + + var copy = new ClipboardJS('.copy-btn'); + handleTooltip(copy); +}); diff --git a/assets/freeze-script.js b/assets/freeze-script.js new file mode 100644 index 0000000..e336e9d --- /dev/null +++ b/assets/freeze-script.js @@ -0,0 +1,17 @@ +var text = "Thank you for reaching out. Unfortunately NYU Web Hosting has an indefinite freeze in place for new accounts while the service architecture is under review.

In the meantime, we highly recommend using NYU's recently updated Web Publishing service, which provides managed access to WordPress installations with an assortment of accessible themes and plugins with additional security review.

Best,
NYU DSS and Web Hosting"; + +$(document).ready(function() { + $("#submit").click(function() { + $('#txt').empty(); + + var data = {}; + $('#form').serializeArray().map(function(x){data[x.name] = x.value;}); + + var result = "Hi " + data.name + ",

"; + result += text; + $('#txt').append(result); + }); + + var copy = new ClipboardJS('.copy-btn'); + handleTooltip(copy); +}); diff --git a/assets/script.js b/assets/script.js deleted file mode 100644 index 00ffeb2..0000000 --- a/assets/script.js +++ /dev/null @@ -1,31 +0,0 @@ -var temp = "I've created your account for you, and have included some information below about the service and how to get started. Before you begin, however, I do want to let you know that our Terms of Service state that you will lose access to your site after you leave NYU. If you would like to keep your site online after your NYU NetID expires, there are several options outlined on this page. But I wanted to let you know about this before you create your site, so that you can decide whether it's better to host your site with a different hosting service where this won't be an issue.

"; - -var notemp = "I've created your new Web Hosting account for you. "; - -var login1 = "The next step is to login with your NYU netID and password at http://hosting.nyu.edu/dashboard/. You will then be prompted to create a URL for your site. The URL will follow this formula: _____.hosting.nyu.edu, and you will need to choose something to fill in the blank. For example, I might use my netID and type " - -var login2 = " to fill in the blank. You can do similarly or choose something else.

Think carefully about what you choose to fill in the blank because this name can’t be changed! Also, please note that this URL will form the root for all subsequent sites that you might create under your account (ex. _____.hosting.nyu.edu/blog1, _____.hosting.nyu.edu/blog2)

The Web Hosting team will provide support for basic technical issues (e.g. assistance resetting passwords, resolving network outages), but we’re unable to provide support for the site customizations (customizing themes, PHP or CSS modification, etc). Our vendor, Reclaim Hosting, has a robust knowledge base site, which you can access at https://community.reclaimhosting.com/.

"; - -var accessibility = "Please note that NYU is committed to accessibility and adheres to the World Wide Web Consortium’s Web Content Accessibility Guidelines (WCAG) 2.1 AA standards. Digital accessibility is the practice of ensuring that NYU websites, web applications, and digital content can be used by our community who have a diverse range of hearing, movement, sight or cognitive abilities. You are responsible for creating content that complies with these criteria.

While accessibility is necessary for some groups to use the web, it is beneficial for everyone. Below are some resources to assist you in creating an accessible website."; - -var sshinfo = "When you have been granted access to NYU Hosting, you will receive an email with SSH/FTP credentials (it has the subject line, 'New Account Information'). Accessing the server/backend can be useful if you have to transfer many files over to your server space quickly using an FTP program. You can also access the backend via the cPanel."; - -$(document).ready(function() { - $("#submit").click(function() { - $('#txt').empty(); - - var data = {}; - $('#form').serializeArray().map(function(x){data[x.name] = x.value;}); - console.log(data); - - var result = "Hi " + data.name + ",

"; - if ('temp' in data) { result += temp } - else { result += notemp } - result += login1 + '"' + data.netid + '"' + login2 + accessibility; - if ('ssh' in data) { result += sshinfo } - $('#txt').append(result); - }); - - var copy = new ClipboardJS('.copy-btn'); - handleTooltip(copy); -}); diff --git a/index.md b/index.md index d0e610a..fb2203f 100644 --- a/index.md +++ b/index.md @@ -1,26 +1,14 @@ --- -# Feel free to add content and custom Front Matter to this file. -# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults - -layout: default +layout: page --- - - - - -
- Student or temporary affiliate? 
- Include SSH/FTP info? 
- Their first name 
- Your NetID 

- -
- -
- -
-
+Generate semi-templated replies semi-dynamically - - +