7 Commits
0.16.0 ... main

Author SHA1 Message Date
David Lord
1e22ee143c remove slsa provenance (#300) 2025-06-14 13:13:45 -07:00
David Lord
38a7511f87 remove slsa provenance
PyPI and trusted publishing has built-in attestation support now.
2025-06-14 13:09:14 -07:00
Kartikey Porwal
40f8645ec9 Fix class attribute dump_filename in ProfilerDebugPanel (#294)
We need `dump_filename` in `ProfilerDebugPanel` always initialised to avoid `AttributeError`

Fix #286
2025-01-06 11:15:32 -08:00
Jeff Widman
07f85152b5 Jquery update (#290)
Bump tablesorter version to 2.3.0

Tablesorter only requires jquery 1.2.6+ which is long deprecated.
I've updated deprecated functions in Tablesorter and raised the required version to jQuery 3.5+

Updated deprecated jquery functions in toolbar.js as well. I'm sure there are more but I've cleaned up the obvious ones that seem to be throwing most console warnings.
2024-11-06 15:27:49 -07:00
Max Garin
cbac0064df Remove deprecated bind, unbind, and $.trim 2024-10-18 10:22:47 -05:00
Max Garin
58b4dd0290 Update tablesorter version. Remove deprecated bind, unbind, and trim. Bump jquery required version. 2024-10-18 10:20:36 -05:00
David Lord
e3ce6eb0a6 Release version 0.16.0 (#282) 2024-09-28 07:55:51 -07:00
4 changed files with 2924 additions and 2939 deletions

View File

@@ -6,8 +6,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
outputs:
hash: ${{ steps.hash.outputs.hash }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
@@ -19,27 +17,11 @@ jobs:
# Use the commit date instead of the current date during the build.
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
- run: python -m build
# Generate hashes used for provenance.
- name: generate hash
id: hash
run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
path: ./dist
provenance:
needs: [build]
permissions:
actions: read
id-token: write
contents: write
# Can't pin with hash due to how this workflow works.
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
with:
base64-subjects: ${{ needs.build.outputs.hash }}
create-release:
# Upload the sdist, wheels, and provenance to a GitHub release. They remain
# available as build artifacts for a while as well.
needs: [provenance]
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: write
@@ -48,12 +30,11 @@ jobs:
- name: create release
run: >
gh release create --draft --repo ${{ github.repository }}
${{ github.ref_name }}
*.intoto.jsonl/* artifact/*
${{ github.ref_name }} artifact/*
env:
GH_TOKEN: ${{ github.token }}
publish-pypi:
needs: [provenance]
needs: [build]
# Wait for approval before attempting to upload to PyPI. This allows reviewing the
# files in the draft release.
environment:

View File

@@ -36,6 +36,8 @@ class ProfilerDebugPanel(DebugPanel):
) -> None:
super().__init__(jinja_env, context=context)
self.dump_filename = None
if current_app.config.get("DEBUG_TB_PROFILER_ENABLED"):
self.is_active = True
self.dump_filename = current_app.config.get(

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
(function($) {
$.cookie = function(name, value, options) { if (typeof value != 'undefined') { options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; } expires = '; expires=' + date.toUTCString(); } var path = options.path ? '; path=' + (options.path) : ''; var domain = options.domain ? '; domain=' + (options.domain) : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } else { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = $.trim(cookies[i]); if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } };
$.cookie = function(name, value, options) { if (typeof value != 'undefined') { options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; } expires = '; expires=' + date.toUTCString(); } var path = options.path ? '; path=' + (options.path) : ''; var domain = options.domain ? '; domain=' + (options.domain) : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } else { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i].trim(); if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } };
$('head').append('<link rel="stylesheet" href="'+DEBUG_TOOLBAR_STATIC_PATH+'css/toolbar.css?'+ Math.random() +'" type="text/css" />');
var COOKIE_NAME = 'fldt';
var COOKIE_NAME_ACTIVE = COOKIE_NAME +'_active';
@@ -113,7 +113,7 @@
});
$(this).tablesorter({headers: headers});
})
.bind('sortEnd', function() {
.on('sortEnd', function() {
$(this).find('tbody tr').each(function(idx, elem) {
var even = idx % 2 === 0;
$(elem)
@@ -143,7 +143,7 @@
$('#flDebugToolbar').hide('fast');
$('#flDebugToolbarHandle').show();
// Unbind keydown
$(document).unbind('keydown.flDebug');
$(document).off('keydown.flDebug');
if (setCookie) {
$.cookie(COOKIE_NAME, 'hide', {
path: '/',