Commit 03da96347b4b16d4de69d10fad1e2f182929af3c
1 parent
8a0dd59d9f
Exists in
master
and in
1 other branch
removed unnecessary files
Showing
12 changed files
with
0 additions
and
260 deletions
Show diff stats
src/assets/meta.php
1 | <!doctype html> | File was deleted | |
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <?php | ||
5 | $id = substr($_SERVER[REQUEST_URI], strrpos($_SERVER[REQUEST_URI], '/') + 1); | ||
6 | #$response = file_get_contents('https://api.gigsfor.me/api/Profiles/'.$id); | ||
7 | # $response = json_decode($response); | ||
8 | $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; | ||
9 | #$title = $response->firstName.' '.$response->lastName; | ||
10 | #$description = $response->oneLineBio; | ||
11 | #$image = $response->profileImage; | ||
12 | if ($id === "communication-for-the-gig-economy-101"){ | ||
13 | $title = 'Communication 101'; | ||
14 | $image = 'https://cdn.filestackcontent.com/E24ABqbjQyeNfCuOGTum'; | ||
15 | $description = 'Learn the basics of communication and how you can improve your communication to get more projects in this free course'; | ||
16 | } elseif($id === "gig-economy-101"){ | ||
17 | $title = 'Gig Economy 101'; | ||
18 | $image = 'https://cdn.filestackcontent.com/Oo6ZEdEShqpObPCrFW6b'; | ||
19 | $description = 'Learn all about the white collar gig work and how can can kick-start your career as a freelancer with this free course'; | ||
20 | } elseif($id === "content-writing-101"){ | ||
21 | $title = 'Content Writing 101'; | ||
22 | $image = 'https://cdn.filestackcontent.com/WVo8wGv5QZOMHdAyjDUn'; | ||
23 | $description = 'Discover the basics of content writing, the platforms for content writing gigs, and the tools you can use in this free course.'; | ||
24 | } elseif($id === "gigs" || $id === "courses" || $id === "contact" || $id === "about"){ | ||
25 | $title = 'Gigsforme-Start, manage and grow your freelance career'; | ||
26 | $image = 'https://cdn.filestackcontent.com/WVo8wGv5QZOMHdAyjDUn'; | ||
27 | $description = 'Use our AI based tools to find the right gigs, courses and career paths, suited for you to launch a successful freelance career.'; | ||
28 | } else { | ||
29 | $response = file_get_contents('https://api.gigsfor.me/api/Profiles/'.$id); | ||
30 | $response = json_decode($response); | ||
31 | if(!$response->hashTag){ | ||
32 | $response->hashTag = '#gigworker'; | ||
33 | } | ||
34 | $title = $response->firstName.' '.$response->lastName. ' | '.$response->skills[0]. ' | '.$response->hashTag; | ||
35 | $description = 'View '.$response->firstName.' '.$response->lastName.'\'s profile on gigsforme, the online platform for freelancers to start, manage and grow their career. Discover Annie Rose Parina’sphilosophy and superpowers for the gig economy'; | ||
36 | $image = $response->profileImage; | ||
37 | } | ||
38 | ?> | ||
39 | <!-- Required meta tags --> | ||
40 | <meta charset="utf-8"> | ||
41 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
42 | <meta property="og:image" content="<?php echo $image; ?>"> | ||
43 | <meta name="description" content="<?php echo $description; ?>"/> | ||
44 | <meta property="og:locale" content="en_US" /> | ||
45 | <meta property="og:type" content="website" /> | ||
46 | <meta property="og:title" content="<?php echo $title; ?>" /> | ||
47 | <meta property="og:description" content="<?php echo $description; ?>" /> | ||
48 | <meta property="og:url" content="<?php echo $actual_link; ?>" /> | ||
49 | <meta property="og:site_name" content="GigsForMe" /> | ||
50 | <meta name="twitter:card" content="summary" /> | ||
51 | <meta name="twitter:description" content="<?php echo $description; ?>" /> | ||
52 | <meta name="twitter:title" content="<?php echo $title; ?>" /> | ||
53 | <!-- Bootstrap CSS --> | ||
54 | |||
55 | <title><?php echo $title; ?></title> | ||
56 | </head> | ||
57 | <body> | ||
58 | <?php | ||
59 | $id = substr($_SERVER[REQUEST_URI], strrpos($_SERVER[REQUEST_URI], '/') + 1); | ||
60 | echo '<br>'; | ||
61 | echo '<br>'; | ||
62 | echo '<br>'; | ||
63 | echo $id; | ||
64 | |||
65 | ?> | ||
66 | <h1><?php echo $response->firstName; ?> <?php echo $response->lastName; ?></h1> | ||
67 | |||
68 | </body> | ||
69 | </html> |
src/assets/video/file.mp4
No preview for this file type
src/assets/video/file1.mp4
No preview for this file type
src/assets/video/video1.mp4
No preview for this file type
test/e2e/custom-assertions/elementCount.js
1 | // A custom Nightwatch assertion. | File was deleted | |
2 | // The assertion name is the filename. | ||
3 | // Example usage: | ||
4 | // | ||
5 | // browser.assert.elementCount(selector, count) | ||
6 | // | ||
7 | // For more information on custom assertions see: | ||
8 | // http://nightwatchjs.org/guide#writing-custom-assertions | ||
9 | |||
10 | exports.assertion = function (selector, count) { | ||
11 | this.message = 'Testing if element <' + selector + '> has count: ' + count | ||
12 | this.expected = count | ||
13 | this.pass = function (val) { | ||
14 | return val === this.expected | ||
15 | } | ||
16 | this.value = function (res) { | ||
17 | return res.value | ||
18 | } | ||
19 | this.command = function (cb) { | ||
20 | var self = this | ||
21 | return this.api.execute(function (selector) { | ||
22 | return document.querySelectorAll(selector).length | ||
23 | }, [selector], function (res) { | ||
24 | cb.call(self, res) | ||
25 | }) | ||
26 | } | ||
27 | } | ||
28 | 1 | // A custom Nightwatch assertion. |
test/e2e/nightwatch.conf.js
1 | require('babel-register') | File was deleted | |
2 | var config = require('../../config') | ||
3 | |||
4 | // http://nightwatchjs.org/gettingstarted#settings-file | ||
5 | module.exports = { | ||
6 | src_folders: ['test/e2e/specs'], | ||
7 | output_folder: 'test/e2e/reports', | ||
8 | custom_assertions_path: ['test/e2e/custom-assertions'], | ||
9 | |||
10 | selenium: { | ||
11 | start_process: true, | ||
12 | server_path: require('selenium-server').path, | ||
13 | host: '127.0.0.1', | ||
14 | port: 4444, | ||
15 | cli_args: { | ||
16 | 'webdriver.chrome.driver': require('chromedriver').path | ||
17 | } | ||
18 | }, | ||
19 | |||
20 | test_settings: { | ||
21 | default: { | ||
22 | selenium_port: 4444, | ||
23 | selenium_host: 'localhost', | ||
24 | silent: true, | ||
25 | globals: { | ||
26 | devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port) | ||
27 | } | ||
28 | }, | ||
29 | |||
30 | chrome: { | ||
31 | desiredCapabilities: { | ||
32 | browserName: 'chrome', | ||
33 | javascriptEnabled: true, | ||
34 | acceptSslCerts: true | ||
35 | } | ||
36 | }, | ||
37 | |||
38 | firefox: { | ||
39 | desiredCapabilities: { | ||
40 | browserName: 'firefox', | ||
41 | javascriptEnabled: true, | ||
42 | acceptSslCerts: true | ||
43 | } | ||
44 | } | ||
45 | } | ||
46 | } | ||
47 | 1 | require('babel-register') |
test/e2e/runner.js
1 | // 1. start the dev server using production config | File was deleted | |
2 | process.env.NODE_ENV = 'testing' | ||
3 | |||
4 | const webpack = require('webpack') | ||
5 | const DevServer = require('webpack-dev-server') | ||
6 | |||
7 | const webpackConfig = require('../../build/webpack.prod.conf') | ||
8 | const devConfigPromise = require('../../build/webpack.dev.conf') | ||
9 | |||
10 | let server | ||
11 | |||
12 | devConfigPromise.then(devConfig => { | ||
13 | const devServerOptions = devConfig.devServer | ||
14 | const compiler = webpack(webpackConfig) | ||
15 | server = new DevServer(compiler, devServerOptions) | ||
16 | const port = devServerOptions.port | ||
17 | const host = devServerOptions.host | ||
18 | return server.listen(port, host) | ||
19 | }) | ||
20 | .then(() => { | ||
21 | // 2. run the nightwatch test suite against it | ||
22 | // to run in additional browsers: | ||
23 | // 1. add an entry in test/e2e/nightwatch.conf.js under "test_settings" | ||
24 | // 2. add it to the --env flag below | ||
25 | // or override the environment flag, for example: `npm run e2e -- --env chrome,firefox` | ||
26 | // For more information on Nightwatch's config file, see | ||
27 | // http://nightwatchjs.org/guide#settings-file | ||
28 | let opts = process.argv.slice(2) | ||
29 | if (opts.indexOf('--config') === -1) { | ||
30 | opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js']) | ||
31 | } | ||
32 | if (opts.indexOf('--env') === -1) { | ||
33 | opts = opts.concat(['--env', 'chrome']) | ||
34 | } | ||
35 | |||
36 | const spawn = require('cross-spawn') | ||
37 | const runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' }) | ||
38 | |||
39 | runner.on('exit', function (code) { | ||
40 | server.close() | ||
41 | process.exit(code) | ||
42 | }) | ||
43 | |||
44 | runner.on('error', function (err) { | ||
45 | server.close() | ||
46 | throw err | ||
47 | }) | ||
48 | }) | ||
49 | 1 | // 1. start the dev server using production config |
test/e2e/specs/test.js
1 | // For authoring Nightwatch tests, see | File was deleted | |
2 | // http://nightwatchjs.org/guide#usage | ||
3 | |||
4 | module.exports = { | ||
5 | 'default e2e tests': function (browser) { | ||
6 | // automatically uses dev Server port from /config.index.js | ||
7 | // default: http://localhost:8080 | ||
8 | // see nightwatch.conf.js | ||
9 | const devServer = browser.globals.devServerURL | ||
10 | |||
11 | browser | ||
12 | .url(devServer) | ||
13 | .waitForElementVisible('#app', 5000) | ||
14 | .assert.elementPresent('.hello') | ||
15 | .assert.containsText('h1', 'Welcome to Your Vue.js App') | ||
16 | .assert.elementCount('img', 1) | ||
17 | .end() | ||
18 | } | ||
19 | } | ||
20 | 1 | // For authoring Nightwatch tests, see |
test/unit/.eslintrc
1 | { | File was deleted | |
2 | "env": { | ||
3 | "jest": true | ||
4 | }, | ||
5 | "globals": { | ||
6 | } | ||
7 | } | ||
8 | 1 | { |
test/unit/jest.conf.js
1 | const path = require('path') | File was deleted | |
2 | |||
3 | module.exports = { | ||
4 | rootDir: path.resolve(__dirname, '../../'), | ||
5 | moduleFileExtensions: [ | ||
6 | 'js', | ||
7 | 'json', | ||
8 | 'vue' | ||
9 | ], | ||
10 | moduleNameMapper: { | ||
11 | '^@/(.*)$': '<rootDir>/src/$1' | ||
12 | }, | ||
13 | transform: { | ||
14 | '^.+\\.js$': '<rootDir>/node_modules/babel-jest', | ||
15 | '.*\\.(vue)$': '<rootDir>/node_modules/vue-jest' | ||
16 | }, | ||
17 | testPathIgnorePatterns: [ | ||
18 | '<rootDir>/test/e2e' | ||
19 | ], | ||
20 | snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'], | ||
21 | setupFiles: ['<rootDir>/test/unit/setup'], | ||
22 | mapCoverage: true, | ||
23 | coverageDirectory: '<rootDir>/test/unit/coverage', | ||
24 | collectCoverageFrom: [ | ||
25 | 'src/**/*.{js,vue}', | ||
26 | '!src/main.js', | ||
27 | '!src/router/index.js', | ||
28 | '!**/node_modules/**' | ||
29 | ] | ||
30 | } | ||
31 | 1 | const path = require('path') |
test/unit/setup.js
1 | import Vue from 'vue' | File was deleted | |
2 | |||
3 | Vue.config.productionTip = false | ||
4 | 1 | import Vue from 'vue' |
test/unit/specs/HelloWorld.spec.js
1 | import Vue from 'vue' | File was deleted | |
2 | import HelloWorld from '@/components/HelloWorld' | ||
3 | |||
4 | describe('HelloWorld.vue', () => { | ||
5 | it('should render correct contents', () => { | ||
6 | const Constructor = Vue.extend(HelloWorld) | ||
7 | const vm = new Constructor().$mount() | ||
8 | expect(vm.$el.querySelector('.hello h1').textContent) | ||
9 | .toEqual('Welcome to Your Vue.js App') | ||
10 | }) | ||
11 | }) | ||
12 | 1 | import Vue from 'vue' |