Skip to content

Commit

Permalink
Rename source files (#1266)
Browse files Browse the repository at this point in the history
* rename standalone to mha

* Rename parentFrame.html to uitoggle.html

* Rename DesktopPane.ts to newDesktopFrame.ts

* Rename Default.ts to classicDesktopFrame.ts, app.css to classicDesktopFrame.css

* rename MobilePane-ios.ts/css to newMobilePaneIosFrame.ts/css
  • Loading branch information
stephenegriffin authored Sep 20, 2024
1 parent 10d31bd commit ed66bcd
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 37 deletions.
10 changes: 5 additions & 5 deletions Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<clientCache cacheControlMode="DisableCache"/>
</staticContent>
<httpRedirect enabled="true" httpResponseStatus="Permanent">
<add wildcard="Pages\Default.html" destination="Pages\parentframe.html?default=classic"/>
<add wildcard="Pages\DefaultPhone.html" destination="Pages\parentframe.html?default=classic"/>
<add wildcard="Pages\DefaultTablet.html" destination="Pages\parentframe.html?default=classic"/>
<add wildcard="Pages\DesktopPane.html" destination="Pages\parentframe.html?default=new"/>
<add wildcard="Pages\MobilePane-ios.html" destination="Pages\parentframe.html?default=new-mobile"/>
<add wildcard="Pages\Default.html" destination="Pages\uitoggle.html?default=classic"/>
<add wildcard="Pages\DefaultPhone.html" destination="Pages\uitoggle.html?default=classic"/>
<add wildcard="Pages\DefaultTablet.html" destination="Pages\uitoggle.html?default=classic"/>
<add wildcard="Pages\DesktopPane.html" destination="Pages\uitoggle.html?default=new"/>
<add wildcard="Pages\MobilePane-ios.html" destination="Pages\uitoggle.html?default=new-mobile"/>
</httpRedirect>
</system.webServer>
<system.web>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/Pages/Default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<head>
<title>Page Redirection</title>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=parentframe.html?default=classic">
<meta http-equiv="refresh" content="0; url=uitoggle.html?default=classic">
<script type="text/javascript">
window.location.href = "parentframe.html?default=classic"
window.location.href = "uitoggle.html?default=classic"
</script>
</head>
<body>
If you are not redirected automatically, follow this <a href='parentframe.html?default=classic'>link to example</a>.
If you are not redirected automatically, follow this <a href='uitoggle.html?default=classic'>link to example</a>.
</body>
</html>
6 changes: 3 additions & 3 deletions src/Pages/DefaultPhone.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<head>
<title>Page Redirection</title>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=parentframe.html?default=classic">
<meta http-equiv="refresh" content="0; url=uitoggle.html?default=classic">
<script type="text/javascript">
window.location.href = "parentframe.html?default=classic"
window.location.href = "uitoggle.html?default=classic"
</script>
</head>
<body>
If you are not redirected automatically, follow this <a href='parentframe.html?default=classic'>link to example</a>.
If you are not redirected automatically, follow this <a href='uitoggle.html?default=classic'>link to example</a>.
</body>
</html>
6 changes: 3 additions & 3 deletions src/Pages/DefaultTablet.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<head>
<title>Page Redirection</title>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=parentframe.html?default=classic">
<meta http-equiv="refresh" content="0; url=uitoggle.html?default=classic">
<script type="text/javascript">
window.location.href = "parentframe.html?default=classic"
window.location.href = "uitoggle.html?default=classic"
</script>
</head>
<body>
If you are not redirected automatically, follow this <a href='parentframe.html?default=classic'>link to example</a>.
If you are not redirected automatically, follow this <a href='uitoggle.html?default=classic'>link to example</a>.
</body>
</html>
6 changes: 3 additions & 3 deletions src/Pages/DesktopPane.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=parentframe.html?default=new">
<meta http-equiv="refresh" content="0; url=uitoggle.html?default=new">
<script type="text/javascript">
window.location.href = "parentframe.html?default=new"
window.location.href = "uitoggle.html?default=new"
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow this <a href='parentframe.html?default=new'>link to example</a>.
If you are not redirected automatically, follow this <a href='uitoggle.html?default=new'>link to example</a>.
</body>
</html>
6 changes: 3 additions & 3 deletions src/Pages/MobilePane.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<title>Page Redirection</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="refresh" content="0; url=parentframe.html?default=new-mobile">
<meta http-equiv="refresh" content="0; url=uitoggle.html?default=new-mobile">
<script type="text/javascript">
window.location.href = "parentframe.html?default=new-mobile"
window.location.href = "uitoggle.html?default=new-mobile"
</script>
</head>
<body>
If you are not redirected automatically, follow this <a href='parentframe.html?default=new-mobile'>link to example</a>.
If you are not redirected automatically, follow this <a href='uitoggle.html?default=new-mobile'>link to example</a>.
</body>
</html>
File renamed without changes.
4 changes: 2 additions & 2 deletions src/Scripts/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class Table {

// Now that everything is built, put it together
pane.wrap(wrap);
pane.before(hiddenHeading)
pane.before(hiddenHeading);
pane.before(header);
header.append(switchSpan);
}
Expand Down Expand Up @@ -445,7 +445,7 @@ export class Table {
}

// Rebuilds the UI with a new viewModel
// Used by Standalone.ts and Default.ts to rebuild with new viewModel
// Used by mha.ts and Default.ts to rebuild with new viewModel
public rebuildTables(_viewModel: HeaderModel): void {
this.viewModel = _viewModel;
this.rebuildSections(this.viewModel);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "../Content/Office.css";
import "../Content/App.css";
import "../Content/classicDesktopFrame.css";
import * as $ from "jquery";
import { mhaStrings } from "./mhaStrings";
import { HeaderModel } from "./Headers";
Expand Down
2 changes: 1 addition & 1 deletion src/Scripts/StandAlone.ts → src/Scripts/mha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "office-ui-fabric-js/dist/css/fabric.min.css";
import "office-ui-fabric-js/dist/css/fabric.components.min.css";
import "../Content/fabric.css";
import "../Content/Office.css";
import "../Content/App.css";
import "../Content/classicDesktopFrame.css";
import * as $ from "jquery";
import { mhaStrings } from "./mhaStrings";
import { strings } from "./Strings";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "office-ui-fabric-js/dist/css/fabric.min.css";
import "office-ui-fabric-js/dist/css/fabric.components.min.css";
import "../Content/fabric.css";
import "../Content/DesktopPane.css";
import "../Content/newDesktopFrame.css";
import * as $ from "jquery";
import { fabric } from "office-ui-fabric-js/dist/js/fabric";
import { mhaStrings } from "./mhaStrings";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "framework7/dist/css/framework7.ios.min.css";
import "framework7/dist/css/framework7.ios.colors.min.css";
import "framework7-icons/css/framework7-icons.css";
import "../Content/MobilePane-ios.css";
import "../Content/newMobilePaneIosFrame.css";
import * as $ from "jquery";
import { Framework7 } from "./framework7";
import * as dayjs from "dayjs";
Expand Down
2 changes: 1 addition & 1 deletion src/Scripts/parentFrame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export class ParentFrame {

// Insert the settings and copy buttons into the tab order for the ribbon if we have one
// This handles tabbing out from these buttons.
// Tabbing into these buttons is over in DesktopPane.ts
// Tabbing into these buttons is over in newDesktopFrame.ts
if (!shiftPressed && focused.id === "settingsButton") {
// Find first header-view which is visible
const view = ParentFrame.iFrame?.document.querySelector(".header-view[style*=\"display: block\"]") as HTMLElement;
Expand Down
20 changes: 10 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ console.log("buildTime: " + buildTime);
const pages =
[
{ "name": "unittests", "script": "unittests" },
{ "name": "mha", "script": "StandAlone" },
{ "name": "parentframe", "script": "uiToggle" },
{ "name": "newDesktopFrame", "script": "DesktopPane" },
{ "name": "classicDesktopFrame", "script": "Default" },
{ "name": "newMobilePaneIosFrame", "script": "MobilePane-ios" },
{ "name": "mha", "script": "mha" },
{ "name": "uitoggle", "script": "uiToggle" },
{ "name": "newDesktopFrame", "script": "newDesktopFrame" },
{ "name": "classicDesktopFrame", "script": "classicDesktopFrame" },
{ "name": "newMobilePaneIosFrame", "script": "newMobilePaneIosFrame" },
{ "name": "privacy", "script": "privacy" },
// Redirection/static pages
{ "name": "Default" },
{ "name": "DefaultPhone" },
{ "name": "DefaultTablet" },
{ "name": "DesktopPane" },
{ "name": "MobilePane" },
{ "name": "Default" }, // uitoggle.html?default=classic
{ "name": "DefaultPhone" }, // uitoggle.html?default=classic
{ "name": "DefaultTablet" }, // uitoggle.html?default=classic
{ "name": "DesktopPane" }, // uitoggle.html?default=new
{ "name": "MobilePane" }, // uitoggle.html?default=new-mobile
{ "name": "Functions" },
];

Expand Down

0 comments on commit ed66bcd

Please sign in to comment.