Skip to content
Permalink
Browse files

Add misc files (initial import)

  • Loading branch information...
thomasf committed Feb 9, 2016
1 parent 9af4db0 commit 186b98597f6e81eecff54379da43c7b1a953334e
Showing with 2,390 additions and 0 deletions.
  1. +14 −0 .drone.yml
  2. +91 −0 Makefile
  3. +35 −0 README.md
  4. +42 −0 Vagrantfile
  5. +74 −0 browser/.coffeelint
  6. +14 −0 browser/.esformatter
  7. +205 −0 browser/.eslintrc
  8. +1 −0 browser/.gitignore
  9. +4 −0 browser/README.md
  10. +7 −0 browser/chrome-ext/.gitignore
  11. +3 −0 browser/chrome-ext/README.md
  12. +24 −0 browser/chrome-ext/publisher/Gruntfile.js
  13. +16 −0 browser/chrome-ext/publisher/package.json
  14. +3 −0 browser/chrome-ext/src/.gitignore
  15. +11 −0 browser/chrome-ext/src/documents.html
  16. BIN browser/chrome-ext/src/images/alkasir-icon-256x256.png
  17. +26 −0 browser/chrome-ext/src/images/genicons.sh
  18. BIN browser/chrome-ext/src/images/off.png
  19. BIN browser/chrome-ext/src/images/on.png
  20. BIN browser/chrome-ext/src/images/on16.png
  21. BIN browser/chrome-ext/src/images/on48.png
  22. BIN browser/chrome-ext/src/images/transported.png
  23. BIN browser/chrome-ext/src/images/warning.png
  24. +47 −0 browser/chrome-ext/src/manifest.json
  25. +11 −0 browser/chrome-ext/src/options.html
  26. +10 −0 browser/chrome-ext/src/popup.html
  27. +3 −0 browser/chrome-ext/src/stylesheets/popup.css
  28. +287 −0 hacking.md
  29. +1,195 −0 make.go
  30. +53 −0 package.json
  31. +1 −0 provision/README
  32. +22 −0 provision/all.sh
  33. +20 −0 provision/base.sh
  34. +4 −0 provision/docker-compose-build.sh
  35. +4 −0 provision/docker-compose-up.sh
  36. +2 −0 provision/docker-compose.sh
  37. +2 −0 provision/docker-vagrant.sh
  38. +3 −0 provision/docker.sh
  39. +6 −0 provision/env-local.sh
  40. +7 −0 provision/env-vagrant.sh
  41. +11 −0 provision/go.sh
  42. +21 −0 provision/liquibase-update.sh
  43. +6 −0 provision/maxminddb.sh
  44. +5 −0 provision/nodejs.sh
  45. +22 −0 provision/profile-vagrant.sh
  46. +15 −0 server.js
  47. +12 −0 webpack.chrome.config.js
  48. +51 −0 webpack.config.js
@@ -0,0 +1,14 @@
clone:
path: github.com/alkasir/alkasir

cache:
mount:
- node_modules

services:
- postgres:9.1

build:
image: alkasir/alkasir-build-env:0.0.1
commands:
- go run make.go ci
@@ -0,0 +1,91 @@

GOMAINS = make.go

%.bin %.go: $(GOMAINS)
go build -o $@ $<

default: all-offline

all-offline:
go run make.go all --offline
.PHONY: all
all: make.bin
./make.bin all
.PHONY: bindata
bindata: make.bin
./make.bin bindata
.PHONY: bindata-dev
bindata-dev: make.bin
./make.bin bindata-dev
.PHONY: browser
browser: make.bin
./make.bin browser
.PHONY: bumpversion-patch
bumpversion-patch: make.bin
./make.bin bumpversion-patch
.PHONY: chrome
chrome: make.bin
./make.bin chrome
.PHONY: chrome-copy-messages
chrome-copy-messages: make.bin
./make.bin chrome-copy-messages
.PHONY: ci
ci: make.bin
./make.bin ci
.PHONY: clean
clean: make.bin
./make.bin clean
.PHONY: deps
deps: make.bin
./make.bin deps
.PHONY: dev
dev: make.bin
./make.bin dev
.PHONY: dist
dist: make.bin
./make.bin dist
.PHONY: dist-build
dist-build: make.bin
./make.bin dist-build
.PHONY: dist-build-go
dist-build-go: make.bin
./make.bin dist-build-go
.PHONY: docs
docs: make.bin
./make.bin docs
.PHONY: fmt
fmt: make.bin
./make.bin fmt
.PHONY: genMakefile
genMakefile: make.bin
./make.bin genMakefile
.PHONY: govet
govet: make.bin
./make.bin govet
.PHONY: hot
hot: make.bin
./make.bin hot
.PHONY: hot-build
hot-build: make.bin
./make.bin hot-build
.PHONY: lint
lint: make.bin
./make.bin lint
.PHONY: release
release: make.bin
./make.bin release
.PHONY: releaseChromeExt
releaseChromeExt: make.bin
./make.bin releaseChromeExt
.PHONY: tasks
tasks: make.bin
./make.bin tasks
.PHONY: test
test: make.bin
./make.bin test
.PHONY: test-all
test-all: make.bin
./make.bin test-all
.PHONY: translations-fixup
translations-fixup: make.bin
./make.bin translations-fixup
@@ -0,0 +1,35 @@
# Alkasir v2

Alkasir is a cross-platform, open-source and robust website censorship
circumvention tool that also maps censorship patterns around the world.

See [alkasir.com](https://alkasir.com) for general information about the
software **(NOT updated to v2.0 yet)**.

Drop by the [![gitter.im alkasir chat](https://badges.gitter.im/alkasir/alkasir.svg)](https://gitter.im/alkasir/alkasir?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) for development related discussions.


# IMPORTANT INITIAL OPEN SOURCE RELEASE NOTE

The contents of this repository differ slightly from the source used to build
the distributable downloads.

The reason for this is that we currently did not have the time to split out
some refereces to some private infrastructure and servers. Regardless of these
minor differences everything in the github repository should build and work as
expected.

The code will be modified to allow the differences to be configurable at build
time, some public CI service will be configured as well in a not to distant
future.

**The commit history of this repository will be fully replaced continuously by
a script during the initial open sourcing phase until
https://github.com/alkasir/alkasir/issues/1 is resolved and/or this notice is
removed. The contents of this repository is currently autogeneratet by a
script**


## Hacking

Se [hacking](hacking.md) for information on how to set up an development environment.
@@ -0,0 +1,42 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "phusion-open-ubuntu-14.04-amd64"
config.vm.box_url = "https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-14.04-amd64-vbox.box"

config.vm.provider :vmware_fusion do |f, override|
override.vm.box_url = "https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-14.04-amd64-vmwarefusion.box"
end

config.vm.host_name = "alkasir"

config.vm.synced_folder ".", "/home/vagrant/src/github.com/alkasir/alkasir/"
# configure portforwarding for the docker compose run databases
config.vm.network "forwarded_port", guest: 39550, host: 39550
config.vm.network "forwarded_port", guest: 39558, host: 39558
config.vm.network "forwarded_port", guest: 8899, host: 8899

# Only run the provisioning on the first 'vagrant up'
if Dir.glob("#{File.dirname(__FILE__)}/.vagrant/machines/default/*/id").empty?
config.vm.provision :shell, :path => "provision/base.sh"
config.vm.provision :shell, :path => "provision/docker.sh"
config.vm.provision :shell, :path => "provision/docker-vagrant.sh"
config.vm.provision :shell, :path => "provision/docker-compose.sh"
config.vm.provision :shell, :path => "provision/nodejs.sh"
config.vm.provision :shell, :path => "provision/go.sh"
config.vm.provision :shell, :path => "provision/maxminddb.sh", privileged: false
config.vm.provision :shell, :path => "provision/env-vagrant.sh"
config.vm.provision :shell, :path => "provision/profile-vagrant.sh", privileged: false
# config.vm.provision :shell, :path => "provision/liquibase-update.sh"
end
# config.vm.provision :shell, :path => "provision/env-vagrant.sh"
# config.vm.provision :shell, :path => "provision/docker-compose-up.sh", privileged: false

end
@@ -0,0 +1,74 @@
{
"no_tabs" : {
"level" : "error"
},

"no_trailing_whitespace" : {
"level" : "ignore"
},

"max_line_length" : {
"value": 80,
"level" : "warn"
},

"camel_case_classes" : {
"level" : "error"
},

"indentation" : {
"value" : 2,
"level" : "warn"
},

"no_implicit_braces" : {
"level" : "ignore"
},

"no_trailing_semicolons" : {
"level" : "error"
},

"no_plusplus" : {
"level" : "ignore"
},

"no_throwing_strings" : {
"level" : "error"
},

"cyclomatic_complexity" : {
"value" : 10,
"level" : "ignore"
},

"line_endings" : {
"value" : "unix",
"level" : "ignore"
},

"no_implicit_parens" : {
"level" : "ignore"
},

"no_stand_alone_at" : {
"level": "warn"
},

"newlines_after_classes": {
"value": 3,
"level": "ignore"
},

"space_operators": {
"level": "warn"
},

"arrow_spacing": {
"level": "warn"
},

"duplicate_key": {
"level": "error"
}
}
@@ -0,0 +1,14 @@
{
"root": true,
"indent": {
"value": " ",
"FunctionExpression": 1,
"ArrayExpression": 1,
"ObjectExpression": 1
},
"plugins": [
"esformatter-semicolons",
"esformatter-jsx",
"esformatter-use-strict"
]
}
Oops, something went wrong.

0 comments on commit 186b985

Please sign in to comment.
You can’t perform that action at this time.