https://github.com/HarborLibrary/
https://github.com/d2-projects/d2-admin
QT + FFmpeg 5.x + x264 + x265 + SDL2 音视频播放器
S-FTPClient(Swing,Java,Socket,FTP,加密算法)
https://www.huggingface.co/login
HuggingFace 免费吗
Stable Diffusion
let code;
var editor;
let framename = "iframe_test";
window.οnlοad=function ()
{
code= window.localStorage["editcode"]
if(code==null) code= 'this is test ';
require.config({ paths: { vs: '../js/monaco-editor/min/vs' } });
require(['vs/editor/editor.main'], function () {
monaco.languages.registerCompletionItemProvider('javascript', {
provideCompletionItems:function(model, position){
return {
suggestions: [{
label: "显示的名称",
detail: "说明",
filtertText: "搜什么关键字显示",
insertText: "实际插入的代码",
kind: 6
},{
label: "db",
detail: "说明",
filtertText: "搜什么关键字显示",
insertText: "db.",
kind: 6
}]
}
}
})
monaco.languages.registerCompletionItemProvider(
'javascript',
{
triggerCharacters: ['ds.','.'],
provideCompletionItems: (model, position) =>{
const { lineNumber, column } = position
// 光标前文本
const textBeforePointer = model.getValueInRange({
startLineNumber: lineNumber,
startColumn: 0,
endLineNumber: lineNumber,
endColumn: column
})
console.log(textBeforePointer);
if(['ds.'].includes(textBeforePointer)){
return {suggestions: [
{
label: 'connection("")', //显示的提示名称
insertText: 'connection("")' //选择后粘贴到编辑器中的文字
},
{
label: 'query("","")',
insertText: 'query("","")'
},
]};
}
if(['ds.connection("").'].includes(textBeforePointer)){
return {suggestions: [
{
label: 'query("")',
insertText: 'query("")',
},
]};
}
}
}
)
editor = monaco.editor.create(document.getElementById('editcode'), {
value:"",
// value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
//value: code,
language: 'javascript',
//language: 'html',
theme: 'vs-dark'
});
});
}