Delete admin console

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=116894352
This commit is contained in:
jart 2016-03-10 12:07:55 -08:00 committed by Ben McIlwain
parent 6772b2ef80
commit f2116093b1
33 changed files with 2 additions and 2912 deletions

View file

@ -1,41 +0,0 @@
package(default_visibility = ["//java/com/google/domain/registry:registry_project"])
load("//third_party/closure/templates:closure_template_java_library.bzl", "closure_template_java_library")
load("//third_party/closure/templates:closure_template_js_library.bzl", "closure_template_js_library")
filegroup(
name = "js_files",
srcs = [
"Console.soy.js",
"Registrar.soy.js",
"Registry.soy.js",
],
)
closure_template_java_library(
name = "soy_java_wrappers",
srcs = glob(["*.soy"]),
java_package = "com.google.domain.registry.ui.soy.admin",
)
closure_template_js_library(
name = "Console",
srcs = ["Console.soy"],
globals = "//java/com/google/domain/registry/ui:globals.txt",
deps = ["//java/com/google/domain/registry/ui/soy:Console"],
)
closure_template_js_library(
name = "Registrar",
srcs = ["Registrar.soy"],
globals = "//java/com/google/domain/registry/ui:globals.txt",
deps = ["//java/com/google/domain/registry/ui/soy:Forms"],
)
closure_template_js_library(
name = "Registry",
srcs = ["Registry.soy"],
globals = "//java/com/google/domain/registry/ui:globals.txt",
deps = ["//java/com/google/domain/registry/ui/soy:Forms"],
)

View file

@ -1,60 +0,0 @@
{namespace registry.soy.admin.console autoescape="strict"}
/**
* Main admin page. Content is filled in dynamically via JS rendering
* of other templates in this directory.
*/
{template .main}
{@param user: map<string, ?>} /** Passed to googlebar. */
{@param xsrfToken: string} /** Token for callbacks to the server. */
{call registry.soy.console.header}
{param app: 'admin' /}
{param subtitle: 'Admin Console' /}
{/call}
{call registry.soy.console.googlebar data="all" /}
<div id="reg-app">
<div id="reg-appbar" class="{css kd-appbar}"></div>
{call .navbar_ /}
<div id="reg-content-and-footer">
<div id="reg-content">
<!-- Dynamic content goes here. -->
</div>
<div class="{css pageFooter}">
Here's lookin' at you, <a href="http://memegen.googleplex.com">.meme</a>!.
</div>
</div>
<div id="debug"></div>
</div>
{switch DEBUG}
{case com.google.domain.registry.ui.ConsoleDebug.PRODUCTION}
<script src="/assets/js/admin_bin_map.js"></script>
{case com.google.domain.registry.ui.ConsoleDebug.DEBUG}
<script src="/assets/js/admin_dbg.js"></script>
{case com.google.domain.registry.ui.ConsoleDebug.RAW}
<script src="/assets/sources/external/closure_library/closure/goog/base.js">
</script>
<script src="/assets/sources/deps-runfiles.js"></script>
<script>goog.require('registry.admin.main');</script>
{/switch}
{if isNonnull(DEBUG)}
<script>registry.admin.main({$xsrfToken});</script>
{/if}
{/template}
/**
* Navigation bar.
*/
{template .navbar_ private="true"}
<div id="reg-nav" class="{css kd-content-sidebar}">
<ul id="reg-navlist">
<li class="{css kd-sidebarlistitem}">
<a href="/_dr/admin#registry">Registries</a>
</li>
<li class="{css kd-sidebarlistitem}">
<a href="/_dr/admin#registrar">Registrars</a>
</li>
</ul>
</div>
{/template}

View file

@ -1,360 +0,0 @@
{namespace registry.soy.admin.registrar autoescape="strict"}
/**
* Set view for registrars.
* @param set
*/
{template .registrars}
<div class="{css set}">
<h1>Registrars</h1>
<table id="registrars">
<tr>
<th>Name</th>
<th>Status</th>
<th>TLDs</th>
</tr>
{foreach $registrar in $set}
<tr>
<td class="{css client-identifier}">
<a href="/_dr/admin#registrar/{$registrar['clientIdentifier']}">
{$registrar['clientIdentifier']}</a>
</td>
<td>
{$registrar.state}
</td>
<td>
{if isNonnull($registrar.allowedTlds)}
{length($registrar.allowedTlds)}
{else}
0
{/if}
</td>
</tr>
{/foreach}
</table>
<form name="create">
<h2>New Registrar</h2>
<table>
{call registry.soy.forms.inputFieldRow}
{param label: 'Registrar ID (clientIdentifier)' /}
{param name: 'clientIdentifier' /}
{/call}
{call registry.soy.forms.inputFieldRow}
{param name: 'registrarName' /}
{/call}
{call registry.soy.forms.inputFieldRow}
{param name: 'icannReferralEmail' /}
{/call}
{call registry.soy.forms.inputFieldRow}
{param name: 'emailAddress' /}
{/call}
{call registry.soy.forms.inputFieldRow}
{param label: 'Street' /}
{param name: 'localizedAddress.street[0]' /}
{/call}
{call registry.soy.forms.inputFieldRow}
{param label: 'City' /}
{param name: 'localizedAddress.city' /}
{/call}
{call registry.soy.forms.inputFieldRow}
{param label: 'Country code' /}
{param name: 'localizedAddress.countryCode' /}
{/call}
</table>
<button type="button"
id="create-button"
class="{css kd-button} {css kd-button-submit}">Create</button>
</form>
</div>
{/template}
/**
* Item view for registrar.
* @param item
*/
{template .registrar}
<form name="item" class="{css item} {css registrar}">
<h1>{$item['clientIdentifier']}</h1>
<table>
{call .registrarAdminFields_ data="all" /}
{call .registrarResourcesFields_ data="all" /}
{call .registrarWhoisFields_ data="all" /}
{call .registrarSecurityFields_ data="all" /}
{call .registrarContactFields_ data="all" /}
{call .registrarMiscFields_ data="all" /}
</table>
</form>
{/template}
/**
* Administrative-only fields.
* @private
*/
{template .registrarAdminFields_}
{@param item: map<string, ?>}
<tr class="{css section-lead}">
<th colspan="2">Admin settings - Admin Visible only</th>
{call registry.soy.forms.selectRow data="all"}
{param label: 'State' /}
{param name: 'state' /}
{param description: 'model: state' /}
{param options: ['PENDING', 'ACTIVE', 'SUSPENDED'] /}
{param selected: $item['state'] /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'Allowed TLDs' /}
{param name: 'allowedTlds' /}
{param placeholder: 'e.g. foo,bar' /}
{param description: 'model: allowedTlds' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'New EPP password' /}
{param name: 'password' /}
{param description: 'model: password' /}
{/call}
{call registry.soy.forms.inputCheckboxRow data="all"}
{param label: 'Block premium names' /}
{param name: 'blockPremiumNames' /}
{param checked: $item['blockPremiumNames'] ? true : null /}
{param description: 'model: blockPremiumNames' /}
{/call}
{/template}
/**
* Public WHOIS fields.
* @private
*/
{template .registrarResourcesFields_}
{@param item: map<string, ?>}
<tr class="{css section-lead}">
<th colspan="2">Resources settings - Admin &amp; Registrar Visible</th>
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'Drive Folder ID' /}
{param name: 'driveFolderId' /}
{param description: 'model: driveFolderId' /}
{/call}
{/template}
/**
* Public WHOIS fields.
* @private
*/
{template .registrarWhoisFields_}
{@param item: map<string, ?>}
<tr class="{css section-lead}">
<th colspan="2">WHOIS settings - Admin &amp; Registrar Visible</th>
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'Name' /}
{param name: 'registrarName' /}
{param description: 'model: registrarName' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'IANA ID' /}
{param name: 'ianaIdentifier' /}
{param description: 'model: ianaIdentifier' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'ICANN referral email' /}
{param name: 'icannReferralEmail' /}
{param description: 'model: icannReferralEmail' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'Email' /}
{param name: 'emailAddress' /}
{param description: 'model: emailAddress' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'Phone' /}
{param name: 'phoneNumber' /}
{param description: 'model: phoneNumber' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'Fax' /}
{param name: 'faxNumber' /}
{param description: 'model: faxNumber' /}
{/call}
{call registry.soy.forms.inputFieldRowWithValue data="all"}
{param label: 'Street 1' /}
{param name: 'localizedAddress.street[0]' /}
{param value: $item['localizedAddress'].street[0] /}
{param description: 'model: localizedAddress.street[0]' /}
{/call}
{call registry.soy.forms.inputFieldRowWithValue data="all"}
{param label: 'Street 2' /}
{param name: 'localizedAddress.street[1]' /}
{param value: $item['localizedAddress'].street[1] /}
{param description: 'model: localizedAddress.street[1]' /}
{/call}
{call registry.soy.forms.inputFieldRowWithValue data="all"}
{param label: 'Street 3' /}
{param name: 'localizedAddress.street[2]' /}
{param value: $item['localizedAddress'].street[2] /}
{param description: 'model: localizedAddress.street[2]' /}
{/call}
{call registry.soy.forms.inputFieldRowWithValue data="all"}
{param label: 'City' /}
{param name: 'localizedAddress.city' /}
{param value: $item['localizedAddress'].city /}
{param description: 'model: localizedAddress.city' /}
{/call}
{call registry.soy.forms.inputFieldRowWithValue data="all"}
{param label: 'State/Region' /}
{param name: 'localizedAddress.state' /}
{param value: $item['localizedAddress'].state /}
{param description: 'model: localizedAddress.state' /}
{/call}
{call registry.soy.forms.inputFieldRowWithValue data="all"}
{param label: 'Zip/Postal code' /}
{param name: 'localizedAddress.zip' /}
{param value: $item['localizedAddress'].zip /}
{param description: 'model: localizedAddress.zip' /}
{/call}
{call registry.soy.forms.inputFieldRowWithValue data="all"}
{param label: 'Country code' /}
{param name: 'localizedAddress.countryCode' /}
{param value: $item['localizedAddress'].countryCode /}
{param description: 'model: localizedAddress.countryCode' /}
{/call}
<tr class="{css section-lead}">
<th colspan="2"><em>These are filled in by default to google servers</em></th>
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'WHOIS server' /}
{param name: 'whoisServer' /}
{param description: 'model: whoisServer' /}
{param placeholder: 'e.g. whois.nic.foo' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'Referral URL' /}
{param name: 'referralUrl' /}
{param description: 'model: referralUrl' /}
{param placeholder: 'http://whois.nic.google' /}
{/call}
{/template}
/**
* Security settings, like SSL cert and IP whitelist.
* @private
*/
{template .registrarSecurityFields_}
{@param item: map<string, ?>}
<tr class="{css section-lead}">
<th colspan="2">Security settings - Admin &amp; Registrar Visible</th>
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'IP whitelist' /}
{param name: 'ipAddressWhitelist' /}
{param placeholder: 'e.g. 1.1.1.1/24' /}
{param description: 'model: ipAddressWhitelist' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param label: 'Telephone passcode' /}
{param name: 'phonePasscode' /}
{param placeholder: 'e.g. 01234' /}
{param description: 'model: ipAddressWhitelist (Registrar read-only)' /}
{/call}
{call registry.soy.forms.textareaFieldRow data="all"}
{param label: 'SSL certificate' /}
{param name: 'clientCertificate' /}
{param description: 'model: clientCertificate' /}
{/call}
<tr>
<td><label>clientCertificateHash</label></td>
<td>{$item['clientCertificateHash']}</td>
</tr>
<tr>
<td><label>lastCertificateUpdateTime</label></td>
<td>{$item['lastCertificateUpdateTime']}</td>
</tr>
{/template}
/**
* Registrar communication contacts.
* @private
*/
{template .registrarContactFields_}
{@param item: map<string, ?>}
<tr class="{css section-lead}">
<th colspan="2">
<button id="add-contact-button" type="button"
class="{css kd-button} {css add-contact-button} {css hidden}">
Add Contact</button>
Contacts
</th>
</tr>
<tr>
<td id="contacts" colspan="2">
{if isNonnull($item['contacts'])}
{foreach $c in $item['contacts']}
{call .contactInfo data="all"}
{param namePrefix: 'contacts[' + index($c) + '].' /}
{param item: $c /}
{/call}
{/foreach}
{/if}
</td>
</tr>
{/template}
/**
* Extra fields for internal use.
* @private
*/
{template .registrarMiscFields_}
{@param item: map<string, ?>}
<tr class="{css section-lead}">
<th colspan="2">External IDs</th>
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'billingIdentifier' /}
{/call}
<tr class="{css section-lead}">
<th colspan="2">Does anybody use this stuff?</th>
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'url' /}
{/call}
<tr class="{css section-lead}">
<th colspan="2">Metadata</th>
<tr>
<td>creationTime</td>
<td>{$item['creationTime']}</td>
<tr>
<td>lastUpdateTime</td>
<td>{$item['lastUpdateTime']}</td>
{/template}
/** Contact info. Removable. */
{template .contactInfo}
{@param namePrefix: string}
<div>
<table>
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'name' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'emailAddress' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'phoneNumber' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'faxNumber' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'types' /}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'gaeUserId' /}
{/call}
</table>
<button type="button" class="{css kd-button} {css remove} {css hidden}">
Remove
</button>
</div>
{/template}

View file

@ -1,87 +0,0 @@
{namespace registry.soy.admin.registry autoescape="strict"}
/**
* Set view for registries.
* @param set
*/
{template .registries}
<div class="{css set}">
<h1>Registries</h1>
<table id="registries">
<tr>
<th>TLD
<th>Status
{foreach $tld in $set}
<tr>
<td class="{css name} {css title}">
<a href="/_dr/admin#registry/{$tld.name}">{$tld.name}</a>
<td class="{css status}">{$tld.state}
{/foreach}
</table>
<form name="create">
<h2>New Registry</h2>
<table>
{call registry.soy.forms.inputFieldRow}
{param name: 'newTldName'/}
{/call}
</table>
<button type="button"
id="create-button"
class="{css kd-button} {css kd-button-submit}">Create</button>
</form>
</div>
{/template}
/**
* Item view for registry.
* @param item
*/
{template .registry}
<form name="item" class="{css item} {css registrar}">
<h1>{$item.name}</h1>
<table>
<tr>
<td>state:
<td>
{$item['state']}
<tr>
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'tldStateTransitions'/}
{param placeholder: 'e.g. PREDELEGATION,T00:00:00Z;SUNRUSH,T04:00:00Z'/}
{/call}
<tr class="{css section-lead}">
<th colspan="2">Periods</th>
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'addGracePeriod'/}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'autoRenewGracePeriod'/}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'redemptionGracePeriod'/}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'renewGracePeriod'/}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'transferGracePeriod'/}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'automaticTransferLength'/}
{/call}
{call registry.soy.forms.inputFieldRow data="all"}
{param name: 'pendingDeleteLength'/}
{/call}
<tr class="{css section-lead}">
<th colspan="2">Metadata (for GCHQ)</th>
<tr>
<td>creationTime
<td>{$item['creationTime']}
<tr>
<td>lastUpdateTime
<td>{$item['lastUpdateTime']}
</table>
</form>
{/template}