|
| 1 | +<!doctype html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <title>Salesforce Launcher</title> |
| 6 | + <link rel="stylesheet" href="styles.css" /> |
| 7 | + </head> |
| 8 | + <body> |
| 9 | + <div class="draggable-header"></div> |
| 10 | + <div class="container"> |
| 11 | + <div class="header-controls"> |
| 12 | + <div class="title-row"> |
| 13 | + <h1>My Orgs</h1> |
| 14 | + <button id="add-org-btn" class="icon-btn" title="Add New Org (Login)">+</button> |
| 15 | + </div> |
| 16 | + <div class="controls-row"> |
| 17 | + <input type="text" id="search-input" placeholder="Search orgs..." /> |
| 18 | + <button id="refresh-btn" class="icon-btn" title="Refresh Orgs">↻</button> |
| 19 | + </div> |
| 20 | + <div class="controls-row secondary"> |
| 21 | + <select id="sort-select"> |
| 22 | + <option value="name">Sort: Name</option> |
| 23 | + <option value="lastUsed">Sort: Last Used</option> |
| 24 | + <option value="type">Sort: Type</option> |
| 25 | + </select> |
| 26 | + <select id="group-select"> |
| 27 | + <option value="none">Group: None</option> |
| 28 | + <option value="folder">Group: Folder</option> |
| 29 | + <option value="tag">Group: Tag</option> |
| 30 | + </select> |
| 31 | + </div> |
| 32 | + </div> |
| 33 | + <div id="org-list" class="org-list"> |
| 34 | + <div class="loading">Loading orgs...</div> |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + |
| 38 | + <!-- Edit Modal --> |
| 39 | + <div id="edit-modal" class="modal hidden"> |
| 40 | + <div class="modal-content"> |
| 41 | + <h3>Edit Org</h3> |
| 42 | + <div class="form-group"> |
| 43 | + <label>CLI Alias (Global)</label> |
| 44 | + <input type="text" id="edit-alias" placeholder="e.g. MyOrgDev" /> |
| 45 | + </div> |
| 46 | + <div class="form-group"> |
| 47 | + <label>Custom Name (Local Display Only)</label> |
| 48 | + <input type="text" id="edit-name" /> |
| 49 | + </div> |
| 50 | + <div class="form-group"> |
| 51 | + <label>Folder</label> |
| 52 | + <input type="text" id="edit-folder" list="folder-list" /> |
| 53 | + <datalist id="folder-list"></datalist> |
| 54 | + </div> |
| 55 | + <div class="form-group"> |
| 56 | + <label>Tags (comma separated)</label> |
| 57 | + <input type="text" id="edit-tags" /> |
| 58 | + </div> |
| 59 | + <div class="modal-actions"> |
| 60 | + <button id="cancel-edit">Cancel</button> |
| 61 | + <button id="save-edit" class="primary">Save</button> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + |
| 66 | + <!-- Add Org Modal --> |
| 67 | + <div id="add-org-modal" class="modal hidden"> |
| 68 | + <div class="modal-content"> |
| 69 | + <h3>Login to New Org</h3> |
| 70 | + <div class="form-group"> |
| 71 | + <label>Alias (Optional)</label> |
| 72 | + <input type="text" id="add-alias" placeholder="e.g. MyNewOrg" /> |
| 73 | + </div> |
| 74 | + <p class="subtext">This will open your browser to log in via Salesforce.</p> |
| 75 | + <div class="modal-actions"> |
| 76 | + <button id="cancel-add">Cancel</button> |
| 77 | + <button id="confirm-add" class="primary">Login</button> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + </div> |
| 81 | + |
| 82 | + <!-- Info/Details Modal --> |
| 83 | + <div id="info-modal" class="modal hidden"> |
| 84 | + <div class="modal-content"> |
| 85 | + <h3>Org Details</h3> |
| 86 | + <div class="info-grid" id="info-content"> |
| 87 | + <!-- Populated dynamically --> |
| 88 | + </div> |
| 89 | + <div class="modal-actions"> |
| 90 | + <button onclick="document.getElementById('info-modal').classList.add('hidden')">Close</button> |
| 91 | + </div> |
| 92 | + </div> |
| 93 | + </div> |
| 94 | + |
| 95 | + <script src="renderer.js"></script> |
| 96 | + </body> |
| 97 | +</html> |
0 commit comments