Skip to content

Commit

Permalink
move and componentise winrt shim
Browse files Browse the repository at this point in the history
  • Loading branch information
WamWooWam committed Jun 4, 2021
1 parent ec1e12d commit 4965293
Show file tree
Hide file tree
Showing 1,636 changed files with 129 additions and 3,009 deletions.
1 change: 1 addition & 0 deletions packages/microsoft.skypeapp/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta charset="utf-8">
<title>Skype</title>

<script src="//winrt/dist/winrt.bundle.js" rel="stylesheet"></script>
<script src="//microsoft.skypeapp.shim/dist/bundle.js" rel="stylesheet"></script>

<!-- WinJS references -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta content="IE=edge" http-equiv="X-UA-Compatible">


<script src="//winrt/dist/winrt.bundle.js"></script>
<script src="//microsoft.windowscommunicationsapps.shim/dist/bundle.js"></script>

<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<head>
<meta charset="utf-8" content="IE=edge" http-equiv="X-UA-Compatible" />

<script src="//winrt/dist/winrt.bundle.js"></script>
<script src="//microsoft.windowscommunicationsapps.shim/dist/bundle.js"></script>

<!-- Create the platform first so that when it blocks, IE can continue to load subsequent scripts -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

<head>
<meta charset="utf-8" content="IE=edge" http-equiv="X-UA-Compatible" />

<script src="//winrt/dist/winrt.bundle.js"></script>
<script src="//microsoft.windowscommunicationsapps.shim/dist/bundle.js"></script>
<!-- Create the platform first so that when it blocks, IE can continue to load subsequent scripts -->
<script src="/modernmail/util/Platform.js" type="text/javascript" ></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
If you want to debug a cover build in IE, uncomment the following line including CoverStubs.js. -->
<!-- <script type="text/javascript" src="../Shared/Stubs/CoverStubs.js"></script> -->

<script src="//winrt/dist/winrt.bundle.js"></script>
<script src="//microsoft.windowscommunicationsapps.shim/dist/bundle.js"></script>

<!-- Create the platform as early as possible, so that it can spin up the database in the background -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<title>Mail</title>

<script src="//winrt/dist/winrt.bundle.js"></script>
<script src="//microsoft.windowscommunicationsapps.shim/dist/bundle.js"></script>

<link href="//Microsoft.WinJS.2.0/css/ui-light.css" rel="stylesheet" type="text/css" />
Expand Down
2 changes: 1 addition & 1 deletion packages/microsoft.zunemusic/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html>

<head>
<script src="//microsoft.zune.shim/dist/winrt.bundle.js"></script>
<script src="//winrt/dist/winrt.bundle.js"></script>
<script src="//microsoft.zune.shim/dist/index.bundle.js"></script>

<script>
Expand Down
2 changes: 1 addition & 1 deletion packages/microsoft.zunevideo/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE HTML>
<html>
<head>
<script src="//microsoft.zune.shim/dist/winrt.bundle.js"></script>
<script src="//winrt/dist/winrt.bundle.js"></script>
<script src="//microsoft.zune.shim/dist/index.bundle.js"></script>

<script>
Expand Down
3 changes: 2 additions & 1 deletion packages/wikimediafoundation.wikipedia/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<meta charset="utf-8">
<title>WikipediaMetroTest</title>

<script src="//wikimediafoundation.wikipedia.shim//dist/shim.js"></script>
<script src="//winrt/dist/winrt.bundle.js"></script>
<script src="//winrt/dist/index.bundle.js"></script>

<!-- WinJS references -->
<link href="//Microsoft.WinJS.2.0/css/ui-light.css" rel="stylesheet" />
Expand Down
9 changes: 8 additions & 1 deletion shims/microsoft.skypeapp.shim/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const webpack = require("webpack")
const path = require('path');

module.exports = {
entry: './index.ts',
mode: 'production',
mode: 'development',
devtool: 'inline-source-map',
module: {
rules: [
Expand All @@ -20,5 +21,11 @@ module.exports = {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
plugins: [
new webpack.DllReferencePlugin({
context: path.dirname(require.resolve("winrt")),
manifest: require("winrt/dist/manifest.winrt.json")
}),
],
target: "electron-renderer"
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path');
const webpack = require('webpack');

module.exports = {
entry: './index.ts',
Expand All @@ -20,5 +21,11 @@ module.exports = {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
plugins: [
new webpack.DllReferencePlugin({
context: path.dirname(require.resolve("winrt")),
manifest: require("winrt/dist/manifest.winrt.json")
}),
],
target: "electron-renderer"
};
1 change: 1 addition & 0 deletions shims/microsoft.zune.shim/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// </auto-generated>
// --------------------------------------------------

import "winrt"
import { ApplicationLifetimeManager as Microsoft_Entertainment_ApplicationLifetimeManager } from "./Microsoft/Entertainment/ApplicationLifetimeManager";
import { ApplicationState as Microsoft_Entertainment_ApplicationState } from "./Microsoft/Entertainment/ApplicationState";
import { ClosedCaptionDownloader as Microsoft_Entertainment_ClosedCaptionDownloader } from "./Microsoft/Entertainment/ClosedCaptionDownloader";
Expand Down
17 changes: 10 additions & 7 deletions shims/microsoft.zune.shim/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
const webpack = require('webpack');
const path = require('path');

module.exports = {
entry: {
index: {
import: './index.ts',
dependOn: 'winrt',
},
winrt: 'winrt',
index: "./index.ts"
},
// mode: 'development',
// devtool: 'inline-source-map',
mode: 'development',
devtool: 'inline-source-map',
module: {
rules: [
{
Expand All @@ -26,5 +23,11 @@ module.exports = {
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'dist'),
},
plugins: [
new webpack.DllReferencePlugin({
context: path.dirname(require.resolve("winrt")),
manifest: require("winrt/dist/manifest.winrt.json")
}),
],
target: "electron-renderer"
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 4965293

Please sign in to comment.