Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import AV from 'leancloud-storage';
export const appId = 'ogaJShC9qJERt8LqGO80z2pO-gzGzoHsz';
export const appKey = '8e5H5xBF86hI9vItQI1pt4kP';
AV.init({
appId,
appKey,
// serverURLs: 'https://avoscloud.com',
serverURLs: 'https://ogajshc9.lc-cn-n1-shared.com',
});
export default AV;
import runBlock from './index.run.js';
import reverseInfiniteListDirective from './app/components/reverse-infinite-list/reverse-infinite-list.directive.js';
import messageDirective from './app/components/message/message.directive.js';
import userService from './app/components/user/user.service.js';
import loginController from './app/login/login.controller.js';
import loggingController from './app/login/logging.controller.js';
import convController from './app/conversation/conversation.controller.js';
import convMsgController from './app/conversation/conversationMessage/conversation.message.controller.js';
export const app = 'leanMessage';
const appId = 'm7baukzusy3l5coew0b3em5uf4df5i2krky0ypbmee358yon';
const appKey = '2e46velw0mqrq3hl2a047yjtpxn32frm0m253k258xo63ft9';
AV.init({appId, appKey});
angular
.module(app, ['ui.router', 'ngMaterial'])
.config(routesConfig)
.config($mdThemingProvider => {
'ngInject';
$mdThemingProvider.theme('default')
.primaryPalette('blue')
.accentPalette('blue-grey');
})
.factory('LeanRT', () => {
const LeanRT = {};
const realtime = new Realtime({
appId,
appKey,
// server: 'rtm51',
function initAV() {
const appId = 'jA3TvXP3ALTwNBhujMGnjgXk-gzGzoHsz';
const appKey = 'tWGoClvRJED6U4IAkzwaqESq';
AV.init({ appId, appKey });
}
import AV from 'leancloud-storage';
import config from 'config';
const appId = config.get('leancloud.appId');
const appKey = config.get('leancloud.appKey');
const appDB = config.get('leancloud.appDB');
AV.init({ appId, appKey });
class LeancloudStorage {
constructor() {
const TodoObject = AV.Object.extend(appDB);
this.todoObject = new TodoObject();
}
async addTodo(option) {
const todo = {
tags: [],
important: false,
complete: false,
steps: [],
...option
}
return await this.todoObject.save(todo);
init() {
AV.init({
appId: this.APP_ID,
appKey: this.APP_KEY
})
}
}
import AV from 'leancloud-storage';
import { AppState, NativeModules, Alert, DeviceEventEmitter } from 'react-native';
const PushNotificationIOS = require('react-native').PushNotificationIOS;
const AndroidPush = NativeModules.androidPushModule;
const appId = 'ppdriT1clcnRoda0okCPaB48-gzGzoHsz';
const appKey = 'Qzarq5cMdWzAMjwDW4umWpBL';
AV.init({
appId: appId,
appKey: appKey
});
const Installation = require('leancloud-installation')(AV);
class PushService {
//用于记录通知的临时变量
backgroundNotification = null;
//iOS
_iOS_initPush = () => {
PushNotificationIOS.addEventListener('register', this._iOS_onRegister);
PushNotificationIOS.addEventListener('notification', this._iOS_onNotification);
PushNotificationIOS.requestPermissions();
import Vue from 'vue'
import AV from 'leancloud-storage'
let APP_ID = '8axnRtGoxCJhEzsvNPEAHnol-gzGzoHsz';
let APP_KEY = '0YH4XkYflb4CUPfA743TGj8G';
AV.init({
appId: APP_ID,
appKey: APP_KEY
});
var app = new Vue({
el: '#app',
data: {
actionType: 'signUp',
formData: {
username: '',
password: ''
},
newTodo: '',
todoList: [],
currentUser: null,
},
/**
* 这个模块只放初始化业务
*/
import React from 'react'
import ReactDOM from 'react-dom'
import AV from "leancloud-storage"
import App from './js/route.js'
import './index.css'
import registerServiceWorker from './registerServiceWorker'
//初始化 Leancloud
const appId = 'U4D6TL1HgHHauvmmmhR7qNYA-gzGzoHsz'
const appKey = 'wbh3vxJVB72NUiX8sSkcOPzx'
AV.init({ appId, appKey })
ReactDOM.render(, document.getElementById('root'))
registerServiceWorker()
/**
* token 跳转的单页面
*/
import React from 'react'
import ReactDOM from 'react-dom'
import AV from "leancloud-storage"
import Oauth from './js/oauth'
import registerServiceWorker from './registerServiceWorker'
//初始化 Leancloud
const appId = 'U4D6TL1HgHHauvmmmhR7qNYA-gzGzoHsz'
const appKey = 'wbh3vxJVB72NUiX8sSkcOPzx'
AV.init({ appId, appKey })
ReactDOM.render(, document.getElementById('root'))
registerServiceWorker()