cleanup
This commit is contained in:
Родитель
4bc5a8bef7
Коммит
42d7ee472b
1
Procfile
1
Procfile
|
@ -1 +0,0 @@
|
|||
web: python bin/server.py
|
|
@ -1,3 +0,0 @@
|
|||
Force.com application template.
|
||||
|
||||
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
|
11
app.json
11
app.json
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
"name": "Force.com Application",
|
||||
"addons": [
|
||||
"force-com-prototype"
|
||||
],
|
||||
"buildpacks": [
|
||||
{
|
||||
"url": "https://github.com/sfdc-alm/force-com-buildpack"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
@isTest
|
||||
public class SampleApexTests {
|
||||
|
||||
public static testMethod void myTest() {
|
||||
System.assertEquals(1, 1);
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
|
||||
<apiVersion>35.0</apiVersion>
|
||||
<status>Active</status>
|
||||
</ApexClass>
|
|
@ -1,7 +0,0 @@
|
|||
public with sharing class SampleController {
|
||||
|
||||
public String getAppVersion() {
|
||||
return '1.0.2';
|
||||
}
|
||||
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
|
||||
<apiVersion>35.0</apiVersion>
|
||||
<status>Active</status>
|
||||
</ApexClass>
|
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
|
||||
<types>
|
||||
<members>*</members>
|
||||
<name>ApexClass</name>
|
||||
</types>
|
||||
<types>
|
||||
<members>*</members>
|
||||
<name>ApexPage</name>
|
||||
</types>
|
||||
<types>
|
||||
<members>*</members>
|
||||
<name>ApexTrigger</name>
|
||||
</types>
|
||||
<version>35.0</version>
|
||||
</Package>
|
|
@ -1,5 +0,0 @@
|
|||
<apex:page controller="SampleController">
|
||||
<apex:pageBlock title="Hello {!$User.FirstName}, welcome to app version {!appVersion}!">
|
||||
This is your new page. More sample content here. Even more content.
|
||||
</apex:pageBlock>
|
||||
</apex:page>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
|
||||
<apiVersion>35.0</apiVersion>
|
||||
<availableInTouch>false</availableInTouch>
|
||||
<confirmationTokenRequired>false</confirmationTokenRequired>
|
||||
<label>Sample Visualforce Page</label>
|
||||
</ApexPage>
|
|
@ -1,12 +0,0 @@
|
|||
// Sample code from https://developer.salesforce.com/page/Apex_Code_Best_Practices
|
||||
trigger sampleTrigger on Account (before insert, before update) {
|
||||
|
||||
List<String> accountNames = new List<String>{};
|
||||
|
||||
//Loop through all records in the Trigger.new collection
|
||||
for(Account a: Trigger.new){
|
||||
//Concatenate the Name and billingState into the Description field
|
||||
a.Description = a.Name + ':' + a.BillingState;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ApexTrigger xmlns="http://soap.sforce.com/2006/04/metadata">
|
||||
<apiVersion>35.0</apiVersion>
|
||||
<status>Active</status>
|
||||
</ApexTrigger>
|
|
@ -1,21 +0,0 @@
|
|||
import socket
|
||||
import SimpleHTTPServer
|
||||
import SocketServer
|
||||
from os import getenv, environ
|
||||
|
||||
HOST, PORT = '', int(getenv('PORT', 5000))
|
||||
LOGIN_URL = environ['FORCE_COM_PROTOTYPE_WEB_LOGIN_URL']
|
||||
USERNAME = environ['FORCE_COM_PROTOTYPE_USERNAME']
|
||||
PASSWORD = environ['FORCE_COM_PROTOTYPE_WEB_LOGIN_PASSWORD']
|
||||
|
||||
class myHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||
def do_GET(self):
|
||||
print self.path
|
||||
self.send_response(303)
|
||||
new_path = '%s?un=%s&pw=%s'%(LOGIN_URL, USERNAME, PASSWORD)
|
||||
self.send_header('Location', new_path)
|
||||
self.end_headers()
|
||||
|
||||
handler = SocketServer.TCPServer(("", PORT), myHandler)
|
||||
print "serving at port {PORT}".format(PORT=PORT)
|
||||
handler.serve_forever()
|
Загрузка…
Ссылка в новой задаче