SILENT KILLERPanel

Current Path: > home > codekrsu > > shopceylon.store > wp-content > plugins > code-snippets > > js > services > manage


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//shopceylon.store/wp-content/plugins/code-snippets//js/services/manage

NameTypeSizeLast ModifiedActions
activation.ts File 2364 bytes February 14 2025 13:16:14.
cloud.ts File 1538 bytes November 27 2024 21:52:46.
index.ts File 170 bytes November 27 2024 21:52:46.
priority.ts File 740 bytes November 27 2024 21:52:46.
requests.ts File 1765 bytes November 27 2024 21:52:46.

Reading File: /home/codekrsu//shopceylon.store/wp-content/plugins/code-snippets//js/services/manage/priority.ts

import { updateSnippet } from './requests'
import type { Snippet } from '../../types/Snippet'

/**
 * Update the priority of a snippet
 */
export const updateSnippetPriority = (element: HTMLInputElement) => {
	const row = element.parentElement?.parentElement
	const snippet: Partial<Snippet> = { priority: parseFloat(element.value) }
	if (row) {
		updateSnippet('priority', row, snippet)
	} else {
		console.error('Could not update snippet information.', snippet, row)
	}
}

export const handleSnippetPriorityChanges = () => {
	for (const field of <HTMLCollectionOf<HTMLInputElement>> document.getElementsByClassName('snippet-priority')) {
		field.addEventListener('input', () => updateSnippetPriority(field))
		field.disabled = false
	}
}

SILENT KILLER Tool