
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
inscode-ppt-sdk
Advanced tools
使用依赖包来管理
// package.json
"inscode-ppt-sdk": "git+ssh://git@gitcode.com:InsCode/ppt-editor.git#v0.0.1"
npm install
// 遇到失败检查是否有权限
// 执行 ssh -T git@gitcode.com 的作用是测试你的 SSH 连接是否成功,并验证你的 SSH 公钥是否被 gitcode.com 认可
<template>
<InsCodePPTSdk
ref="pptRef"
:loading="loading"
@change-file="handleChangeFile"
@change-page="handleChangePage"
@render="handleRenderStatus"
>
<template #toolbarLeft>
<div >
toggle
</div>
</template>
<template #toolbarRight>
版本管理
</template>
</InsCodePPTSdk>
</template>
<scrip lang="ts" setup>
import { ref, type Ref } from 'vue';
import InsCodePPTSdk from 'inscode-ppt-sdk';
import 'inscode-ppt-sdk/dist/inscode-ppt-sdk.css'
// generate的时候需要设置为true,默认是false
const loading = ref(true)
// 文件更新
function handleChangeFile (params) {
const { status, fsPath, content } = params
// status: delete|new|update
// fsPath: 文件名字
// content: 文件内容
}
// 切换ppt的时候
function handleChangePage(params) {
const { fsPath, content } = params
// fsPath: 文件名字
// content: 文件内容
}
// 渲染成功或失败
function handleRenderStatus(params) {
const { fsPath, status } = params
// status: success|error
}
// 获取ppt内容
pptRef.value?.get(fsPath, params = {})
// 生成ppt内容 schema协议todo
pptRef.value?.generate(fsPath, params = {})
/**
* fsPath: String 文件路径
* params: Object => { content: String } & Record<String, any>
*/
// 直接渲染 ppt内容
pptRef.value?.render([Object, ...])
/**
* Object: { fsPath: String, content: String } & Record<String, any>
*/
// update单个文件内容
pptRef.value?.update(fsPath, { content: string })
// 获取当前打开的单个ppt
pptRef.value?.getActiveItem()
// 删除某个ppt
pptRef.value?.deleteItem(fsPath:string)
// 打开全屏
pptRef.value?.openFullscreen()
// 设置某个ppt成为编辑中的状态
pptRef.value?.setItemEditing(fsPath, true)
FAQs
- 发布ppt-editor版本命令 sh/bash publish.sh - 发布单独离屏渲染 npm run build:render
We found that inscode-ppt-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.