Skip to content

Commit

Permalink
freeze 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mnyrop committed Apr 3, 2024
1 parent 19ae634 commit dee672c
Show file tree
Hide file tree
Showing 10 changed files with 238 additions and 164 deletions.
21 changes: 5 additions & 16 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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
154 changes: 104 additions & 50 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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
53 changes: 8 additions & 45 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions _includes/site-header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<header class="header">
<div class="container">
<a href="{{ '/' | absolute_url }}">
<div style="font-weight:bold;font-size:2rem;">{{ site.title }}</div>
</a>
{% include site-nav.html %}
<style>.article{width:100%}</style>
</div>
</header>
31 changes: 31 additions & 0 deletions account-create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
layout: page
title: New Account Creation
---

<script src="https://code.jquery.com/jquery-3.7.1.slim.js" integrity="sha256-UgvvN8vBkgO0luPSUl2s8TIlOSYRoGFAX4jlCIm9Adc=" crossorigin="anonymous"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js'></script>

<form id='form' style='margin:2em 0 2em 0'>
<div style="display:flex;flex-wrap:wrap;gap:1rem;">
<div style="width:250px;">Student or temporary affiliate?</div>
<input type='checkbox' name='temp'>
</div>
<div style="display:flex;flex-wrap:wrap;gap:1rem;">
<div style="width:250px;">Include SSH/FTP info?</div>
<input type='checkbox' name='ssh'>
</div>
<div style="display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:2rem">
<div style="width:250px;">Their first name</div>
<input type='text' name='name' value=''>
</div>
<input id='submit' type='button' value='Generate reply'>
</form>

<div class='txt-wrapper' style='border:1px solid grey;width:100% !important;'>
<button class='copy-btn' data-clipboard-action='copy' data-clipboard-target='#txt' aria-label='Copy to clipboard' style='float:right;color:black'>Copy to clipboard</button>
<div id='txt' style='padding:2em;'>
</div>

<script src="{{ 'assets/tooltip.js' | absolute_url }}"></script>
<script src="{{ 'assets/create-script.js' | absolute_url }}"></script>
23 changes: 23 additions & 0 deletions account-freeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
layout: page
title: New Account Freeze
---

<script src="https://code.jquery.com/jquery-3.7.1.slim.js" integrity="sha256-UgvvN8vBkgO0luPSUl2s8TIlOSYRoGFAX4jlCIm9Adc=" crossorigin="anonymous"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js'></script>

<form id='form' style='margin:2em 0 2em 0'>
<div style="display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:2rem">
<div style="width:250px;">Their first name</div>
<input type='text' name='name' value=''>
</div>
<input id='submit' type='button' value='Generate reply'>
</form>

<div class='txt-wrapper' style='border:1px solid grey;'>
<button class='copy-btn' data-clipboard-action='copy' data-clipboard-target='#txt' aria-label='Copy to clipboard' style='float:right;color:black'>Copy to clipboard</button>
<div id='txt' style='padding:2em;'>
</div>

<script src="{{ 'assets/tooltip.js' | absolute_url }}"></script>
<script src="{{ 'assets/freeze-script.js' | absolute_url }}"></script>
31 changes: 31 additions & 0 deletions assets/create-script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions assets/freeze-script.js
Original file line number Diff line number Diff line change
@@ -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.<br><br>In the meantime, we highly recommend using NYU's recently updated <a href='https://wp.nyu.edu/'>Web Publishing</a> service, which provides managed access to WordPress installations with an assortment of accessible themes and plugins with additional security review.<br><br>Best,<br>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 + ",<br><br>";
result += text;
$('#txt').append(result);
});

var copy = new ClipboardJS('.copy-btn');
handleTooltip(copy);
});
Loading

0 comments on commit dee672c

Please sign in to comment.