mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-12 01:37:06 +02:00
Trois défauts sans rapport entre eux, tous visibles à l'écran. Jauge de contexte bloquée à « 0 / N (0 %) » : le comptage exact vient de usage.prompt_tokens (include_usage), qu'un llama-server récent a cessé de renvoyer. On note désormais si l'usage est arrivé ; sinon la fin de tour publie l'estimation qui pilote déjà la compaction — approximative, mais jamais absente. Et la souscription envoie la valeur courante juste après le rattrapage : une page rechargée affichait zéro sur une discussion pourtant pleine, faute d'événement ctx_used dans la fenêtre rejouée. Espace disque : « il ne reste que 11,9 Go » sur un partage Unraid qui en a des centaines. /mnt/user est servi par shfs, un FUSE qui agrège plusieurs disques — statfs y renvoie l'espace d'un seul, et ce chiffre REFUSAIT l'installation du modèle. Les systèmes de fichiers qui approximent (FUSE, overlay, NFS, CIFS, Ceph, Gluster) sont reconnus par leur magie : leur chiffre reste affiché, précédé d'un « ~ », mais ne bloque plus rien. Panneau Fichiers : le panneau entier défilait, emportant vers le haut l'en-tête, le fil d'Ariane et le pied (occupation disque, bouton .zip) dès qu'il y avait quelques fichiers. Seule la liste défile maintenant ; le pied reste en bas et l'état vide se centre. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
90 lines
3.2 KiB
JavaScript
90 lines
3.2 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "nesting", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return nesting;
|
|
}
|
|
});
|
|
const _postcss = /*#__PURE__*/ _interop_require_default(require("postcss"));
|
|
const _postcssnested = /*#__PURE__*/ _interop_require_default(require("postcss-nested"));
|
|
function _interop_require_default(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
default: obj
|
|
};
|
|
}
|
|
function nesting(opts = _postcssnested.default) {
|
|
return (root, result)=>{
|
|
root.walkAtRules("screen", (rule)=>{
|
|
rule.name = "media";
|
|
rule.params = `screen(${rule.params})`;
|
|
});
|
|
root.walkAtRules("apply", (rule)=>{
|
|
rule.before(_postcss.default.decl({
|
|
prop: "__apply",
|
|
value: rule.params,
|
|
source: rule.source
|
|
}));
|
|
rule.remove();
|
|
});
|
|
let plugin = (()=>{
|
|
var _opts_hasOwnProperty;
|
|
if (typeof opts === "function" || typeof opts === "object" && (opts === null || opts === void 0 ? void 0 : (_opts_hasOwnProperty = opts.hasOwnProperty) === null || _opts_hasOwnProperty === void 0 ? void 0 : _opts_hasOwnProperty.call(opts, "postcssPlugin"))) {
|
|
return opts;
|
|
}
|
|
if (typeof opts === "string") {
|
|
return require(opts);
|
|
}
|
|
if (Object.keys(opts).length <= 0) {
|
|
return _postcssnested.default;
|
|
}
|
|
throw new Error("tailwindcss/nesting should be loaded with a nesting plugin.");
|
|
})();
|
|
(0, _postcss.default)([
|
|
plugin
|
|
]).process(root, result.opts).sync();
|
|
root.walkDecls("__apply", (decl)=>{
|
|
decl.before(_postcss.default.atRule({
|
|
name: "apply",
|
|
params: decl.value,
|
|
source: decl.source
|
|
}));
|
|
decl.remove();
|
|
});
|
|
/**
|
|
* Use a private PostCSS API to remove the "clean" flag from the entire AST.
|
|
* This is done because running process() on the AST will set the "clean"
|
|
* flag on all nodes, which we don't want.
|
|
*
|
|
* This causes downstream plugins using the visitor API to be skipped.
|
|
*
|
|
* This is guarded because the PostCSS API is not public
|
|
* and may change in future versions of PostCSS.
|
|
*
|
|
* See https://github.com/postcss/postcss/issues/1712 for more details
|
|
*
|
|
* @param {import('postcss').Node} node
|
|
*/ function markDirty(node) {
|
|
if (!("markDirty" in node)) {
|
|
return;
|
|
}
|
|
// Traverse the tree down to the leaf nodes
|
|
if (node.nodes) {
|
|
node.nodes.forEach((n)=>markDirty(n));
|
|
}
|
|
// If it's a leaf node mark it as dirty
|
|
// We do this here because marking a node as dirty
|
|
// will walk up the tree and mark all parents as dirty
|
|
// resulting in a lot of unnecessary work if we did this
|
|
// for every single node
|
|
if (!node.nodes) {
|
|
node.markDirty();
|
|
}
|
|
}
|
|
markDirty(root);
|
|
return root;
|
|
};
|
|
}
|