Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gaoding/editor-miniprogram-sdk

Package Overview
Dependencies
Maintainers
22
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gaoding/editor-miniprogram-sdk - npm Package Compare versions

Comparing version 0.0.1-beta.1 to 0.0.1-beta.2

35

demo/components/editor-miniprogram-sdk/editor-miniprogram-sdk.js

@@ -24,9 +24,9 @@ Component({

// 指定页面跳转路径 例:wx.navigateTo(/pages/templet/templet)
templatesNavigate: {
templatesPage: {
type: String,
},
designNavigate: {
designPage: {
type: String,
},
completeNavigate: {
completePage: {
type: String,

@@ -76,7 +76,7 @@ },

thirdCateId: props.thirdCateId,
thirdParty: 'qiye_miniprogram',
// thirdParty: 'qiye_miniprogram',
templatesNavigate: props.templatesNavigate,
designNavigate: props.designNavigate,
completeNavigate: props.completeNavigate,
templatesPage: props.templatesPage,
designPage: props.designPage,
completePage: props.completePage,

@@ -86,3 +86,2 @@ sourceId: props.sourceId,

filterPaidMaterial: 1,
__DEBUG__: 1,

@@ -98,11 +97,17 @@ };

// https://sdk.open-stage.gaoding.com/utms/a8dbab466f5e89356329d9a612aafc0f
const baseHost = 'http://design.dev.gaoding.com/';
const basePath = `h5/${routeMap[props.currentPage || 'templates'] || 'templates'}`;
const utmsMap = {
'complet': 'https://sdk.open-stage.gaoding.com/utms/f6f4c526533ef3ea5eea6bcd3601e539',
'complete': 'https://sdk.open-stage.gaoding.com/utms/f6f4c526533ef3ea5eea6bcd3601e539',
'templates': 'https://sdk.open-stage.gaoding.com/utms/3f341b5ad7fa7a1bb561b6d2b0c081c1',
'design': 'https://sdk.open-stage.gaoding.com/utms/a8dbab466f5e89356329d9a612aafc0f',
}
const query = this.stringifyQuery(queryObj);
// if(props.currentPage !== 'complete') {
// return 'http://172.16.23.196:8080/' + query;
// }
return baseHost + basePath + query;
return utmsMap[routeMap[props.currentPage || 'templates']] + query;
// const baseHost = 'https://sdk.open-stage.gaoding.com/';
// const basePath = `h5/${routeMap[props.currentPage || 'templates'] || 'templates'}`;
// return baseHost + basePath + query;
}

@@ -109,0 +114,0 @@ },

@@ -17,7 +17,10 @@ const formatTime = date => {

// 获取签名
// https://www.yuque.com/docs/share/4e30e11a-ca1e-4a69-902b-0aa8f2b70c29?#
function getCode(fn) {
const kongServiceInfo = 'eyJ0eXBlIjoxLCJzayI6ImY5ZGQ2YzFiNjliMzIzZjZhYzBiNDA4NWY1Y2FiNTEzIiwiYWsiOiI0MzY4YjFlMGY2NzEwMTU1NzFhMmM5NTRkYWRmOWM4YSIsImVmZmVjdGl2ZV90aW1lIjozNjAwLCJ1c2VyX2lkIjoxMDAwMDEsImFwcF9pZCI6InJVdDNxVHlPbkxFcyJ9';
const kongServiceInfo = 'eyJ0eXBlIjoxLCJzayI6ImY5ZGQ2YzFiNjliMzIzZjZhYzBiNDA4NWY1Y2FiNTEzIiwiYWsiOiI0MzY4YjFlMGY2NzEwMTU1NzFhMmM5NTRkYWRmOWM4YSIsImVmZmVjdGl2ZV90aW1lIjozNjAwLCJ1c2VyX2lkIjoxMDAwMDEsImFwcF9pZCI6IlFmNXB0d2RHN3BIMSJ9';
// 'eyJ0eXBlIjoxLCJzayI6ImY5ZGQ2YzFiNjliMzIzZjZhYzBiNDA4NWY1Y2FiNTEzIiwiYWsiOiI0MzY4YjFlMGY2NzEwMTU1NzFhMmM5NTRkYWRmOWM4YSIsImVmZmVjdGl2ZV90aW1lIjozNjAwLCJ1c2VyX2lkIjoxMDAwMDEsImFwcF9pZCI6IlFmNXB0d2RHN3BIMSJ9';
wx.request({
url: 'https://sso.my-fat.gaoding.com/api/oauth/authorize/sdk',
url: 'https://sso.my-stage.gaoding.com/api/oauth/authorize/sdk',
method: 'POST',

@@ -24,0 +27,0 @@ data: {

{
"name": "@gaoding/editor-miniprogram-sdk",
"version": "0.0.1-beta.1",
"version": "0.0.1-beta.2",
"description": "稿定小程序编辑器对外 SDK",

@@ -5,0 +5,0 @@ "main": "src/editor-miniprogram-sdk.js",

@@ -24,9 +24,9 @@ Component({

// 指定页面跳转路径 例:wx.navigateTo(/pages/templet/templet)
templatesNavigate: {
templatesPage: {
type: String,
},
designNavigate: {
designPage: {
type: String,
},
completeNavigate: {
completePage: {
type: String,

@@ -76,7 +76,7 @@ },

thirdCateId: props.thirdCateId,
thirdParty: 'qiye_miniprogram',
// thirdParty: 'qiye_miniprogram',
templatesNavigate: props.templatesNavigate,
designNavigate: props.designNavigate,
completeNavigate: props.completeNavigate,
templatesPage: props.templatesPage,
designPage: props.designPage,
completePage: props.completePage,

@@ -86,3 +86,2 @@ sourceId: props.sourceId,

filterPaidMaterial: 1,
__DEBUG__: 1,

@@ -98,11 +97,17 @@ };

// https://sdk.open-stage.gaoding.com/utms/a8dbab466f5e89356329d9a612aafc0f
const baseHost = 'http://design.dev.gaoding.com/';
const basePath = `h5/${routeMap[props.currentPage || 'templates'] || 'templates'}`;
const utmsMap = {
'complet': 'https://sdk.open-stage.gaoding.com/utms/f6f4c526533ef3ea5eea6bcd3601e539',
'complete': 'https://sdk.open-stage.gaoding.com/utms/f6f4c526533ef3ea5eea6bcd3601e539',
'templates': 'https://sdk.open-stage.gaoding.com/utms/3f341b5ad7fa7a1bb561b6d2b0c081c1',
'design': 'https://sdk.open-stage.gaoding.com/utms/a8dbab466f5e89356329d9a612aafc0f',
}
const query = this.stringifyQuery(queryObj);
// if(props.currentPage !== 'complete') {
// return 'http://172.16.23.196:8080/' + query;
// }
return baseHost + basePath + query;
return utmsMap[routeMap[props.currentPage || 'templates']] + query;
// const baseHost = 'https://sdk.open-stage.gaoding.com/';
// const basePath = `h5/${routeMap[props.currentPage || 'templates'] || 'templates'}`;
// return baseHost + basePath + query;
}

@@ -109,0 +114,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc