Skip to content

Commit

Permalink
removing CORS config
Browse files Browse the repository at this point in the history
adding compiled view files
updating README.md file
  • Loading branch information
shg-dsi committed Oct 11, 2017
1 parent 8f141da commit 0788c46
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 20 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ node_modules
*.iml
*.ipr
*.iws
/src/main/resources/static
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

###Requirements
- Java 8
- Node 8+

###Get Started
- Run gradle task `./gradlew bootRun` in Linux or `.\gradlew.bat bootRun` in Windows
- Browse `http://localhost:8080`

###To Change UI
- Install nodejs 8+
- Install quasar-cli `npm install -g quasar-cli`
- Install vueapp dependencies by `cd vueapp && npm install`
- Build vueapp using `quasar build`. This will build & compressed css, js & html into `src/main/resources/static` folder
- Run gradle task `./gradlew bootRun` in Linux or `.\gradlew.bat bootRun` in Windows
- Browse `http://localhost:8080`
- Build vueapp using `quasar build`. This will compiled & compressed css, js & html into `src/main/resources/static` folder
7 changes: 1 addition & 6 deletions src/main/java/com/newsstories/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@SpringBootApplication
public class Application extends WebMvcConfigurerAdapter {
public class Application {

public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**");
}

}

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="width=device-width,initial-scale=1"><title>Quasar PWA App</title><link rel=icon type=image/png sizes=32x32 href=statics/icons/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=statics/icons/favicon-16x16.png><link rel=manifest href=statics/manifest.json><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=white><meta name=apple-mobile-web-app-title content="Quasar App"><link rel=apple-touch-icon href=statics/icons/apple-icon-152x152.png><meta name=msapplication-TileImage content=statics/icons/ms-icon-144x144.png><meta name=msapplication-TileColor content=#ffffff><meta name=theme-color content=#027be3><link rel=preload href=js/vendor.js as=script><link rel=preload href=js/app.js as=script><link rel=preload href=app.c2c4f71bd4f6ad299e7a10367458df5d.css as=style><link rel=preload href=js/manifest.js as=script><link href=app.c2c4f71bd4f6ad299e7a10367458df5d.css rel=stylesheet></head><body><noscript>This is your fallback content in case JavaScript fails to load.</noscript><div id=q-app></div><script>!function(){"use strict";const o=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));window.addEventListener("load",function(){"serviceWorker"in navigator&&("https:"===window.location.protocol||o)&&navigator.serviceWorker.register("service-worker.js").then(function(o){o.onupdatefound=function(){if(navigator.serviceWorker.controller){const n=o.installing;n.onstatechange=function(){switch(n.state){case"installed":break;case"redundant":throw new Error("The installing service worker became redundant.")}}}}}).catch(function(o){console.error("Error during service worker registration:",o)})})}();</script><script type=text/javascript src=js/manifest.js></script><script type=text/javascript src=js/vendor.js></script><script type=text/javascript src=js/app.js></script></body></html>
1 change: 1 addition & 0 deletions src/main/resources/static/js/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/main/resources/static/js/manifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/main/resources/static/js/vendor.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main/resources/static/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/main/resources/static/statics/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Quasar App",
"short_name": "Quasar-PWA",
"icons": [
{
"src": "/statics/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/statics/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "/index.html",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#027be3"
}
Binary file added src/main/resources/static/statics/quasar-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions vueapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0788c46

Please sign in to comment.