Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Dev to Master #784

Merged
merged 35 commits into from Jun 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
a6571a0
Fixes #731: Update README and travis to work on development branch
simsausaurabh Jun 1, 2018
e4b3869
(deps): Dependency Update (#734)
hemantjadon Jun 1, 2018
9594abf
Merge pull request #733 from simsausaurabh/updatebranchPolicy
hemantjadon Jun 2, 2018
1f006d7
Fixes #735: Fix security vulnerabilities and module deprecation (#736)
simsausaurabh Jun 2, 2018
9c3fe06
Parent #738:Fixed issue of service box.
praveenojha33 Jun 3, 2018
90003f1
Merge pull request #739 from praveenojha33/serv-box
hemantjadon Jun 3, 2018
e7f4f06
Parent #738: Fix CSS issues in development
simsausaurabh Jun 3, 2018
b30a3ce
Merge pull request #740 from simsausaurabh/fixDevUi
hemantjadon Jun 3, 2018
c75be17
Update README.md (#745)
debck Jun 8, 2018
2164e70
Fixes #732: Create automatic deployment of development branch on surg…
simsausaurabh Jun 11, 2018
4090e32
Fixes #743: Create Action, Reducer and Effect for changing Title
simsausaurabh Jun 12, 2018
f395efb
Merge pull request #747 from simsausaurabh/newbranch
hemantjadon Jun 12, 2018
e56334a
Fixes #750: Complete development branch deployment on surge (#751)
simsausaurabh Jun 13, 2018
ef5ec9d
Fixes #738: Fix 'No results after upgrading to latest version' (#749)
simsausaurabh Jun 13, 2018
2559bbd
Fixes #748, #712: Add label for travis build and fix dependency label…
simsausaurabh Jun 14, 2018
0d691dc
Fixes #188, #333, #543: Fix missing sidebar and improve results (#754)
simsausaurabh Jun 17, 2018
d805efb
Fixes #755: Repeating data in sidebar, and Adress: #716 console erro…
simsausaurabh Jun 18, 2018
7066c31
Fixes #761: Use Title Action to set Media-Wall title (#762)
simsausaurabh Jun 18, 2018
59c45b7
Fixes #759: Show results on clicking Enter (#763)
simsausaurabh Jun 18, 2018
795dfae
Fixes #760: Constantly searching while typing query on results page
simsausaurabh Jun 19, 2018
e465db7
Fixes #764: Add new test for reg-exp utility to increase test coverag…
simsausaurabh Jun 20, 2018
cb39145
Fixes #724: Push search data to server using api/push.json (#753)
simsausaurabh Jun 20, 2018
202d1d1
Fixes #767: Remove excessive unused imports, variables and declaratio…
simsausaurabh Jun 20, 2018
f99ac8d
Merge branch 'development' into typingQuery
simsausaurabh Jun 20, 2018
4cf8a0e
Addresses #758: Fix Service Box mat-icon (#769)
simsausaurabh Jun 21, 2018
52d279b
Fixes #46: Implement news sub tab with results from news organization…
simsausaurabh Jun 22, 2018
85781a1
Addresses #758: Fix Tools & Views tab and position of Suggestion Box …
simsausaurabh Jun 22, 2018
7872255
Merge pull request #766 from simsausaurabh/typingQuery
Orbiter Jun 22, 2018
5023427
Fixes #774: Fix Codacy issues (#775)
simsausaurabh Jun 23, 2018
c4b478d
Fixes #772: Replace all instance of Title property with titleAction (…
simsausaurabh Jun 23, 2018
1a7f15c
Fixes #778: Update Integrity sha1 value (#779)
simsausaurabh Jun 24, 2018
cdcfe9f
Fixes #757: Fix broken images on sidebar widget (#780)
simsausaurabh Jun 24, 2018
586292c
Fixes #782: Add Codacy label to the project README (#783)
simsausaurabh Jun 24, 2018
701e89e
Fixes: #360, #653, #690, #716: Fix broken images on user-info-box (#…
simsausaurabh Jun 24, 2018
5be6651
Fixes #785: Fix Codacy issues to merge development into master (#786)
simsausaurabh Jun 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
59 changes: 0 additions & 59 deletions .angular-cli.json

This file was deleted.

17 changes: 12 additions & 5 deletions .travis.yml
Expand Up @@ -4,7 +4,7 @@ dist: trusty
language: node_js

node_js:
- 6
- 8.11

cache:
directories:
Expand All @@ -27,18 +27,25 @@ matrix:
- ng build --prod --aot --build-optimizer

- script:
- ng test --single-run --code-coverage --reporters=coverage-istanbul
- ng test --watch=false --code-coverage

- script:
- ng lint --format=stylish
- docker build -t loklak_server .
- ng lint loklak-search --format=stylish

after_success:
- bash <(curl -s https://codecov.io/bash)
- bash ./pr_deploy.sh
- bash ./deploy.sh

deploy:
provider: surge
skip_cleanup: true
local_dir: dist
domain: http://loklak.surge.sh
on:
branch: development

# safelist
branches:
only:
- master
- development
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,5 +1,5 @@
FROM node:6.9.1-alpine as builder
LABEL MAINTAINER="singh.pratyush96@gmail.com"
LABEL maintainer="singh.pratyush96@gmail.com"

COPY package.json package-lock.json ./

Expand All @@ -11,7 +11,7 @@ WORKDIR /ng-app

COPY . .

RUN $(npm bin)/ng build --prod --build-optimizer
RUN "$(npm bin)/ng build --prod --build-optimizer"

FROM nginx:1.13.3-alpine

Expand Down
25 changes: 15 additions & 10 deletions README.md
@@ -1,10 +1,15 @@
# loklak_search

[![Build Status](https://travis-ci.org/fossasia/loklak_search.svg?branch=master)](https://travis-ci.org/fossasia/loklak_search)
[![Join the chat at https://gitter.im/loklak/loklak](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/loklak/loklak)
[![Code Climate](https://codeclimate.com/github/fossasia/loklak_search/badges/gpa.svg)](https://codeclimate.com/github/fossasia/loklak_search)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/cf7beeb59bce451f9e02958f301554d8)](https://www.codacy.com/app/fossasia/loklak_search?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=fossasia/loklak_search&amp;utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/fossasia/loklak_search/branch/master/graph/badge.svg)](https://codecov.io/gh/fossasia/loklak_search)
[![Dependency Status](https://gemnasium.com/badges/github.com/fossasia/loklak_search.svg)](https://gemnasium.com/github.com/fossasia/loklak_search)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/fossasia/loklak_search.svg)](http://isitmaintained.com/project/fossasia/loklak_search "Percentage of issues still open")
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/fossasia/loklak_search.svg)](http://isitmaintained.com/project/fossasia/loklak_search "Average time to resolve an issue")

Development: [![Build Status](https://travis-ci.org/fossasia/loklak_search.svg?branch=development)](https://travis-ci.org/fossasia/loklak_search)
Master: [![Build Status](https://travis-ci.org/fossasia/loklak_search.svg?branch=master)](https://travis-ci.org/fossasia/loklak_search)
Dependency: [![Gemnasium](https://img.shields.io/gemnasium/mathiasbynens/he.svg)](https://gemnasium.com/github.com/fossasia/loklak_search)

The loklak_search creates a website using the loklak server as a data source. The goal is to get a search site, that offers timeline search as well as custom media search, account and geolocation search.

Expand All @@ -25,13 +30,13 @@ Our chat channel is on gitter here: https://gitter.im/loklak/loklak
* HTML - Structure of the web page generated.
* CSS - Styling options and details of the web page.
* JavaScript(JSON) - Used to store information for deploying the application such as dependencies.
* Angular 4 - Structure for deployment of the web page.
* Angular 6 - Structure for deployment of the web page.
* Bootstrap 3.3.2 - Responsive Design

## Requirements
* [Angular-cli](https://github.com/angular/angular-cli#installation)
* node v6.*
* npm v3.*
* node v8.9+
* npm v5.5+

## Installation
First, we will need to install angular-cli by using the following command:
Expand Down Expand Up @@ -83,14 +88,14 @@ This is an Open Source project and we would be happy to see contributors who rep

## Branch Policy

We have the following branches
We have the following branches:
* **development**
All development goes on in the development branch. If you're making a contribution, please make a pull request to _development_. PRs to the branch must pass a build check and a unit-test check on Travis.
* **master**
All development goes on in the master branch. If you're making a contribution,
you are supposed to make a pull request to _master_.
PRs to the branch must pass a build check and a unit-test check on Travis.
This branch contains shipped code. After significant features/bug-fixes are accumulated on development, development branch is merged into master branch. (https://loklak.org - Is running off the lastest master branch.).
* **gh-pages**
This contains the autogenerated code of the master branch that is generated by Travis.

## License

This project is currently licensed under The MIT License (MIT). A copy of LICENSE.md should be present along with the source code. To obtain the software under a different license, please contact FOSSASIA.
This project is currently licensed under [GNU Lesser General Public License v3.0](./LICENSE). To obtain the software under a different license, please contact FOSSASIA.
134 changes: 134 additions & 0 deletions angular.json
@@ -0,0 +1,134 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"loklak-search": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"styleext": "scss"
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/assets",
"src/manifest.json"
],
"styles": [
{
"input": "node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
},
"src/styles/main.scss"
],
"scripts": [
"./node_modules/wicg-inert/dist/inert.min.js"
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "loklak-search:build"
},
"configurations": {
"production": {
"browserTarget": "loklak-search:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "loklak-search:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
{
"input": "node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
},
"src/styles/main.scss"
],
"scripts": [],
"assets": [
"src/assets",
"src/manifest.json"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"loklak-search-e2e": {
"root": "e2e/",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "loklak-search:serve"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "loklak-search"
}
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions e2e/tsconfig.e2e.json
@@ -0,0 +1,13 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "commonjs",
"target": "es5",
"types": [
"jasmine",
"jasminewd2",
"node"
]
}
}
16 changes: 0 additions & 16 deletions e2e/tsconfig.json

This file was deleted.