Bug 1563866 - Makes module imports structure more consistent.r=keeler

Differential Revision: https://phabricator.services.mozilla.com/D38071

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Carolina 2019-07-17 11:20:43 +00:00
Родитель fdac3e6f91
Коммит 6ce65b9679
7 изменённых файлов: 13 добавлений и 17 удалений

Просмотреть файл

@ -10,9 +10,9 @@ import {
getObjPath,
hash,
hashify,
} from "chrome://global/content/certviewer/utils.js";
import { strings } from "chrome://global/content/certviewer/strings.js";
import { ctLogNames } from "chrome://global/content/certviewer/ctlognames.js";
} from "./utils.js";
import { strings } from "./strings.js";
import { ctLogNames } from "./ctlognames.js";
const getTimeZone = () => {
let timeZone = new Date().toString().match(/\(([A-Za-z\s].*)\)/);

Просмотреть файл

@ -14,11 +14,7 @@
<script defer="defer" src="chrome://global/content/certviewer/asn1js_bundle.js"></script>
<script defer="defer" src="chrome://global/content/certviewer/pkijs_bundle.js"></script>
<script defer="defer" type="module" src="chrome://global/content/certviewer/certviewer.js"></script>
<script defer="defer" src="chrome://global/content/certviewer/components/info-item.js"></script>
<script defer="defer" src="chrome://global/content/certviewer/components/info-group.js"></script>
<script defer="defer" src="chrome://global/content/certviewer/components/dummy-info.js"></script>
<script defer="defer" src="chrome://global/content/certviewer/components/error-section.js"></script>
<script defer="defer" src="chrome://global/content/certviewer/components/certificate-section.js"></script>
<script defer="defer" type="module" src="chrome://global/content/certviewer/components/certificate-section.js"></script>
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css">
<link rel="stylesheet" href="chrome://global/content/certviewer/certviewer.css">
<title>about:certificate</title>

Просмотреть файл

@ -6,7 +6,7 @@
"use strict";
import { parse } from "chrome://global/content/certviewer/certDecoder.js";
import { parse } from "./certDecoder.js";
const { stringToArrayBuffer } = pvutils.pvutils;
const derString =

Просмотреть файл

@ -2,10 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* globals InfoGroup, ErrorSection */
import { updateSelectedItem } from "chrome://global/content/certviewer/certviewer.js";
import { certArray } from "chrome://global/content/certviewer/components/dummy-info.js";
import { updateSelectedItem } from "../certviewer.js";
import { certArray } from "./dummy-info.js";
import { InfoGroup } from "./info-group.js";
import { ErrorSection } from "./error-section.js";
class CertificateSection extends HTMLElement {
constructor() {

Просмотреть файл

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class ErrorSection extends HTMLElement {
export class ErrorSection extends HTMLElement {
constructor() {
super();
}

Просмотреть файл

@ -2,9 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* globals InfoItem */
import { InfoItem } from "./info-item.js";
class InfoGroup extends HTMLElement {
export class InfoGroup extends HTMLElement {
constructor(item) {
super();
this.item = item;

Просмотреть файл

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class InfoItem extends HTMLElement {
export class InfoItem extends HTMLElement {
constructor(item) {
super();
this.item = item;