Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keys table added #10756

Merged
merged 26 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
fcf572b
Keys table added
iArchitSharma Apr 22, 2024
547a80e
workflow add
iArchitSharma Apr 28, 2024
52cf209
Merge branch 'master' into permRef
leecalcote May 4, 2024
2313557
updated
iArchitSharma May 13, 2024
6816401
workflow update
iArchitSharma May 13, 2024
b44e12c
Merge branch 'master' into permRef
iArchitSharma May 13, 2024
9906e33
TOC added
iArchitSharma May 13, 2024
5719f56
Merge branch 'master' of https://github.com/meshery/meshery into permRef
iArchitSharma May 15, 2024
4370d18
stylesheet update
iArchitSharma May 15, 2024
9e55af3
Merge branch 'permRef' of https://github.com/iArchitSharma/meshery in…
iArchitSharma May 15, 2024
8f258b2
update final
iArchitSharma May 16, 2024
ca61bbe
Merge branch 'master' into permRef
iArchitSharma May 16, 2024
44288aa
final
iArchitSharma May 16, 2024
6aafe03
code reformat
iArchitSharma May 16, 2024
3674061
inserted column removed
iArchitSharma May 16, 2024
e9b46ac
Remove Gemfile
iArchitSharma May 16, 2024
c87aea9
Revert "inserted column removed"
iArchitSharma May 16, 2024
c4de26f
final
iArchitSharma May 16, 2024
a7b00ce
Merge branch 'master' into permRef
iArchitSharma May 22, 2024
e610521
Responsive
iArchitSharma May 22, 2024
012d107
Merge branch 'permRef' of https://github.com/iArchitSharma/meshery in…
iArchitSharma May 22, 2024
73e81b6
update
iArchitSharma May 22, 2024
1a0e717
Keychain ID to Keychain name
iArchitSharma May 22, 2024
9894c6b
final
iArchitSharma May 22, 2024
de60ac3
Merge branch 'permRef' of https://github.com/iArchitSharma/meshery in…
iArchitSharma May 22, 2024
b17035a
final
iArchitSharma May 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/generate_keys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
run: |
[ ! -d "./server/permissions" ] && mkdir -p "./server/permissions";
mv keys.csv server/permissions/keys.csv;
- name: Save keys.csv to docs/assets/excel
run: mv keys.csv docs/assets/excel/keys.csv
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
2 changes: 2 additions & 0 deletions docs/_data/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@
links:
- title: Error Code Reference
url: reference/error-codes
- title: Permissions Reference
url: reference/permissions
- title: "REST & GraphQL APIs ↆ"
url: extensibility/api
children:
Expand Down
81 changes: 81 additions & 0 deletions docs/_includes/permissions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<style>
tbody {
display: table-row-group;
vertical-align: middle;
unicode-bidi: isolate;
border-color: inherit;
}

td {
padding: 1rem;
border-top: 2px solid var(--color-primary-dark);
}

#excelTable tbody tr:nth-of-type(odd) {
background-color: var(--color-primary-medium) !important;
}

</style>
<table style="margin:auto;padding-right:25%; padding-left:20%; margin-top:3rem;" id="excelTable" border="1">
<thead>
<tr>
<th style="text-align:left; padding:1rem;">Category</th>
<th style="text-align:left; padding:1rem;">Key Name</th>
<th style="text-align:left; padding:1rem;">Description</th>
<th style="text-align:left; padding:1rem;">Keychain Name</th>
<!-- <th style="text-align:left; padding:1rem;">Key ID</th> -->
</tr>
</thead>
</table>
<script>
window.onload = function() {
const xhr = new XMLHttpRequest();
xhr.open('GET', '../../assets/excel/keys.csv', true);
xhr.responseType = 'arraybuffer';

xhr.onload = function() {
if (xhr.status === 200) {
const data = new Uint8Array(xhr.response);
const workbook = XLSX.read(data, { type: 'array' });
const sheet = workbook.Sheets[workbook.SheetNames[0]];
const htmlTable = XLSX.utils.sheet_to_html(sheet);

// Remove the first, second row
const tableElement = document.createElement('div');
tableElement.innerHTML = htmlTable;
tableElement.querySelector('table').deleteRow(0);
tableElement.querySelector('table').deleteRow(0);

// Remove the columns
const rows = tableElement.querySelectorAll('tr');
rows.forEach(row => {
row.deleteCell(3);
row.deleteCell(3);
row.deleteCell(3);
row.deleteCell(3);
row.deleteCell(3);
row.deleteCell(3);
row.deleteCell(3);
row.deleteCell(3);
row.deleteCell(4);
row.deleteCell(5);
row.deleteCell(6);
row.deleteCell(5);
row.deleteCell(4);
});

document.getElementById('excelTable').innerHTML += tableElement.innerHTML;
} else {
console.error('Failed to load Excel file! Status code: ' + xhr.status);
}
};

xhr.onerror = function() {
console.error('Failed to load Excel file!');
};

xhr.send();
};
</script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.4/xlsx.full.min.js"></script>
Loading
Loading