Skip to content
Snippets Groups Projects
Commit 84f58e7c authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Some more word on the add-in.

I'm still struggling with duplicate event handlers being called, functions exiting early because of this.
For now, it appears that the workbook is not loaded because of this, so most things are broken for now.
parent 52d7c06c
No related branches found
No related tags found
No related merge requests found
{ {
"plugins": [ "plugins": [
"office-addins" "office-addins",
"prettier"
], ],
"extends": [ "extends": [
"plugin:office-addins/recommended" "plugin:office-addins/recommended",
] "plugin:prettier/recommended",
"esling:recommended"
],
"env": {
"browser": true,
"node": true,
"es2021": true
},
"globals": {
"Office": "readonly", // Declare Office as a global variable
"XLSX": "readonly"
},
"rules": {
"no-multiple-empty-lines": "off", // Example: turn off the multiple empty lines rule
"prettier/prettier": "error" // Enforce Prettier formatting as ESLint errors
}
} }
{
"printWidth": 80,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"endOfLine": "auto"
}
\ No newline at end of file
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"acorn": "^8.11.3", "acorn": "^8.11.3",
"babel-loader": "^9.1.3", "babel-loader": "^9.1.3",
"copy-webpack-plugin": "^12.0.2", "copy-webpack-plugin": "^12.0.2",
"eslint-plugin-office-addins": "^3.0.2", "eslint-plugin-office-addins": "^3.0.3",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"html-loader": "^5.0.0", "html-loader": "^5.0.0",
"html-webpack-plugin": "^5.6.0", "html-webpack-plugin": "^5.6.0",
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"acorn": "^8.11.3", "acorn": "^8.11.3",
"babel-loader": "^9.1.3", "babel-loader": "^9.1.3",
"copy-webpack-plugin": "^12.0.2", "copy-webpack-plugin": "^12.0.2",
"eslint-plugin-office-addins": "^3.0.2", "eslint-plugin-office-addins": "^3.0.3",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"html-loader": "^5.0.0", "html-loader": "^5.0.0",
"html-webpack-plugin": "^5.6.0", "html-webpack-plugin": "^5.6.0",
...@@ -59,4 +59,4 @@ ...@@ -59,4 +59,4 @@
"last 2 versions", "last 2 versions",
"ie 11" "ie 11"
] ]
} }
\ No newline at end of file
...@@ -15,12 +15,19 @@ ...@@ -15,12 +15,19 @@
<p id="messageText"></p> <p id="messageText"></p>
</div> </div>
<fieldset> <!--fieldset>
<legend>1. Select data source (Excel file):</legend> <legend>1. Select data source (Excel file):</legend>
<input type="file" id="excelFileInput" accept=".xlsx, .xlsm, .xlsb, .xlts, .xltm, .xls" /> <input type="file" id="excelFileInput" accept=".xlsx, .xlsm, .xlsb, .xlts, .xltm, .xls" />
<div class="worksheet_select">Worksheet: <select id="worksheetSelect" disabled></select></div> <div class="worksheet_select">Worksheet: <select id="worksheetSelect" disabled></select></div>
</fieldset-->
<fieldset>
<legend>1. Select data source (Excel file):</legend>
<button id="selectFileButton">Select File</button>
<span id="selectedFileName" style="margin-left: 10px; font-slant: italic;">No file selected</span>
<div class="worksheet_select">
Worksheet: <select id="worksheetSelect" disabled></select>
</div>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>2. E-Mail - Placeholder fields:</legend> <legend>2. E-Mail - Placeholder fields:</legend>
...@@ -50,9 +57,12 @@ ...@@ -50,9 +57,12 @@
</div> </div>
</fieldset> </fieldset>
<button id="sendNowButton" disabled>Send now</button>
<button id="sendLaterButton" disabled>Send later</button>
<div id="dataPreview"></div> <div id="dataPreview"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script> <script src="https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.full.min.js"></script>
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script> <script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script>
<script src="taskpane.js"></script> <script src="taskpane.js"></script>
</div> </div>
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment