Giter Site home page Giter Site logo

playframework / playframework.com Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 65.0 3.53 MB

The Play Framework website

Home Page: https://playframework.com/

License: Apache License 2.0

Scala 66.82% CSS 0.98% JavaScript 3.24% Java 0.39% HTML 19.33% Stylus 9.23%

playframework.com's Introduction

Play Framework - The High Velocity Web Framework

Twitter Follow Discord GitHub Discussions StackOverflow YouTube Twitch Status OpenCollective

Build Status Maven Repository size Scala Steward badge Mergify Status

The Play Framework combines productivity and performance making it easy to build scalable web applications with Java and Scala. Play is developer friendly with a "just hit refresh" workflow and built-in testing support. With Play, applications scale predictably due to a stateless and non-blocking architecture. By being RESTful by default, including assets compilers, JSON & WebSocket support, Play is a perfect fit for modern web & mobile applications.

Learn More

Sponsors & Backers

If you find Play useful for work, please consider asking your company to support this Open Source project by becoming a sponsor.
You can also individually sponsor the project by becoming a backer.

Thank you to our premium sponsors!

Thank you to all our backers!

License

Copyright (C) from 2022 The Play Framework Contributors https://github.com/playframework, 2011-2021 Lightbend Inc. https://www.lightbend.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

playframework.com's People

Contributors

balagez avatar cb372 avatar cies avatar dotta avatar dulya avatar dwijnand avatar ennru avatar gmethvin avatar ignasi35 avatar ihostage avatar jamesward avatar jroper avatar justinpihony avatar kytta avatar manuelbernhardt avatar marcospereira avatar mariospapasofokli avatar mergify[bot] avatar mkurz avatar octonato avatar pvlugter avatar rasummer avatar richdougherty avatar rstento avatar scala-steward avatar sebastian-alfers avatar sizer avatar wsargent avatar xael-fry avatar xuwei-k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

playframework.com's Issues

"Browse versions" links in documentation pages should point to the current page in chosen version

When one is on page "ScalaWS" for version 2.3.x link here and opens the dropdown list on the right-hand side of the page and clicks on version 2.4.x, one is not taken to page "ScalaWS" for version 2.4.x (this would be the correct link), but to the main page for version 2.4.x (this link).

I know that there will be times when a given page is not available in the target version but we could redirect tthe user to the home page only in those cases when there isn't a matching version. I think this is what most users expect.

Cumbersome to click the dropdown button

On the documentation page the dropdown button is a bit cumbersome. You have to directly click the arrow-down symbol to trigger the dropdown otherwise it wont work. Have a look this screenshot, I added a blue overlay above the icon which triggers the action. As you can see right and left from the icon no click will be triggered.

dropdown_bug

I am using Chrome 56 - but I did recognise this behaviour at least 2 years ago already.
If you don't know this someone may think the site is broken - actually it toke me a few moments to figure out to exactly click the arrow to make it work.
For newcomers this isn't a really good user experience.

Scrollbar issues detected in playframework.com

Originally reported at playframework/playframework#8136.


Today while surfing through playframework.com i discovered it has a scroll bar problem.
whereby the issue is the scroll bar of the website at a point ,doesn't move with the page simultaneously
below is the problem.
video https://youtu.be/Cb3v4-2XcXU
Thank you.
I hope my findings would be helpful.
Operating system : Windows 8.1
Browser used: Google chrome Version 63.0.3239.84 (Official Build) (64-bit)


Posted on Utopian.io - Rewarding Open Source Contributors

Improve the download page

Future reference:

  1. Make the path clear for them to run their first app. Explain what the sample app is and what it illustrates, make sure that once they've downloaded it, they can easily find the instructions to run it. Unify the path in the doc, so that regardless of whether they start from the "Download" page or from the doc, they do not get confused about what to do next.

  2. Provide an overview of Play that is the next level down from the high level benefits that are well-explained already on the website.
    Describe things like where Play fits into a complete solution (a few illustrations would be great), what is the typical development process for creating a Play app, and where they can go next to learn more. Maybe you have some of this content already in the doc, but it needs to be pulled up front where new users can more readily find it?

Deprecated usages in documentation

PlaySlick documentation contains deprecated configuration for slick:

# Orders database
slick.dbs.orders.driver="slick.driver.H2Driver$"
slick.dbs.orders.db.driver="org.h2.Driver"
slick.dbs.orders.db.url="jdbc:h2:mem:play"

# Customers database
slick.dbs.customers.driver="slick.driver.H2Driver$"
slick.dbs.customers.db.driver="org.h2.Driver"
slick.dbs.customers.db.url="jdbc:h2:mem:play"

Message:

[warn] s.b.DatabaseConfig - Use `profile` instead of `driver`. The latter is deprecated since Slick 3.2 and will be removed.

So the example should be replaced with:

# Orders database
slick.dbs.orders.profile = "slick.jdbc.H2Profile$"
slick.dbs.orders.db.driver="org.h2.Driver"
slick.dbs.orders.db.url="jdbc:h2:mem:play"

# Customers database
slick.dbs.customers.profile = "slick.jdbc.H2Profile$"
slick.dbs.customers.db.driver="org.h2.Driver"
slick.dbs.customers.db.url="jdbc:h2:mem:play"

Make <code> links more visible

When we link to API docs we often put a link around <code> styled text. These links are really hard to see. A normal link is coloured green, but a link around <code> has no additional styling. What I think we should do is apply a slightly different style to code that's within an anchor, e.g.

a code {
  border-color: ...;
  text-color: ...;
  background-color: ...;
}

a:hover code {
  border-color: ...;
  text-color: ...;
  background-color: ...;
}

Erroneous link to documentation on GH

On the bottom of this ScalaAnorm page there's the following text to direct to GH: Found an error in this documentation? The source code for this page can be found here where here links to the non-existent page: https://github.com/playframework/playframework/blob/master/documentation/manual/working/scalaGuide/main/sql/ScalaAnorm.md
This should be linking to: https://github.com/playframework/anorm/blob/master/docs/manual/working/scalaGuide/main/sql/ScalaAnorm.md I'd guess.

Set autofocus on search box

New search box is good, but it could be better. Add in autofocus so people can just start typing:

<input type="text" autofocus>

modules dependencies always return a dependencies.yml content even if the module doesn't exist

GET         /modules/repo/:name/:version/dependencies.yml            controllers.Modules.dependencies(name, version)

and in modules.scala

In     modulesLookup.findDependencies(name, version) match {
      case Some(yml) => Ok(yml)
      case None => Ok("self: play -> " + name + " " + version)
    }

So we will always have some content even if the module doesn't exist.
ex
https://www.playframework.com/modules/repo/starwars/1.5/dependencies.yml

tell users about Gitter room

this came up on scala/scala the other day โ€” a user was asking Play questions, we recommended they use the Play Gitter room and when informed of the existence of https://gitter.im/playframework/playframework, they were surprised because they had looked first on playframework.com and found nothing about it

where should it be added? definitely https://playframework.com/get-involved I would think, under "Find help". perhaps also to the little row of social media icons that show up on every page.

Show latest version of docs in Google results

At the moment, when someone searches Google for Play documentation, they will usually get documentation for some random version of Play. E.g. searching for play framework ws gives results in the following order: 2.2.x Scala, 2.1.0 Scala, 2.4.x Scala, 2.1-RC1 Scala, 2.1.1 Java, 1.1, โ€ฆ

But the latest stable version of Play is 2.3.x, so we what we really want is 2.3.x Scala and 2.3.x Java to be the top results.

We should be able to achieve this by generating a sitemap for playframework.com and using the priority tag to put the latest stable versions at the top of search results.

Add notice for Google searchers

Searching for Play documentation presents some problems for experienced programmers: they use Google, and following the usual route of "search terms web framework" doesn't work for Play, because it shows old versions or Google Play.

The best way to drill down into Play documentation is to use "site:playframework.com 2.6.x" on to the end of the google query, but that doesn't get exposed to people.

Looking at the "Referer" header to see if it includes "google" and then adding a modal dialog that says "Hi, we noticed you arrived on this page from Google, did you know adding site:playframework.com 2.6.x to your query will help find what you're looking for more easily?" may help.

Links on Download page not working!

The download links for the Play 2.5.x Starter Projects (Play Java Starter Example and Play Scala Starter Example) and the Play 2.5.x Examples (theChatroom, Ebean example an all others) are not working:

no template with the name play-java found

/cc @wsargent @gmethvin

Tables in doc

Seems styles for table inside page body can be improved for doc generated from markdown on playframework.com (e.g. type table at end of Anorm page).

#content sup {
  font-size: x-small; 
  vertical-align:top }

#content table tr {
  background-color: #fff;
  border-top: 1px solid #ccc
}

#content table th, #content table td {
  border: 1px solid #ddd;
  padding: 6px 13px
}

#content table th { font-weight: bold }

#content table tr:nth-child(2n) { background-color: #f8f8f8 }

Deprecated usages in documentation

PlaySlick documentation contains deprecated configuration for slick:

# Orders database
slick.dbs.orders.driver="slick.driver.H2Driver$"
slick.dbs.orders.db.driver="org.h2.Driver"
slick.dbs.orders.db.url="jdbc:h2:mem:play"

# Customers database
slick.dbs.customers.driver="slick.driver.H2Driver$"
slick.dbs.customers.db.driver="org.h2.Driver"
slick.dbs.customers.db.url="jdbc:h2:mem:play"

Message:

[warn] s.b.DatabaseConfig - Use `profile` instead of `driver`. The latter is deprecated since Slick 3.2 and will be removed.

So the example should be replaced with:

# Orders database
slick.dbs.orders.profile = "slick.jdbc.H2Profile$"
slick.dbs.orders.db.driver="org.h2.Driver"
slick.dbs.orders.db.url="jdbc:h2:mem:play"

# Customers database
slick.dbs.customers.profile = "slick.jdbc.H2Profile$"
slick.dbs.customers.db.driver="org.h2.Driver"
slick.dbs.customers.db.url="jdbc:h2:mem:play"

Sitemaps to prioritise latest docs

At the moment when searching for Play Framework docs the top results are often links to old versions of Play. We should add a sitemap to playframework.com that tells the search engine which version of the docs to prioritise.

Use a modal dialog box for documentation warnings

There are several warning notices that kick into action on the site:

https://www.playframework.com/documentation/2.5.x/Home: "You are viewing the documentation for the 2.5.x release series. The latest stable release series is 2.6.x."

https://www.playframework.com/documentation/1.4.x/home: "You are viewing the documentation for Play 1. The documentation for Play 2 is here."

These warning are above the search bar, and have visual styling that is hard to distinguish from the rest of the page. It would be better to turn this into a modal dialog that covers the rest of the page and must be explicitly clicked through and ignored (potentially with cookie for persistent setting) so that it can't be skipped past.

Downloads page has incorrect text

"Note that the seed templates are already configured with CSRF and security headers filters, whereas the other projects are not specifically set up for security out of the box."

Improve documentation for activator test command line parameters

As per documentation activator test works correctly but activator testOnly my.controllers.ControllerClassTest does not work.

It works with activator "test-only my.controllers.ControllerClassTest" and there by needs to be fixed in the playframework.com documentation

OS is Linux:

09:55:47 ~$ uname -rvp
3.19.0-64-generic #72~14.04.1-Ubuntu SMP Fri Jun 24 17:59:48 UTC 2016 x86_64

I will translate a documentation of play framework to korean.

Hello. I'm Lawrence from korea.

I will translate a documentation of play framework to korean.
And I have questions.

  1. Where is a english doc?
    => Maybe It is in "https://github.com/playframework/playframework/tree/master/documentation".
    Is it right?
  2. How to contact the Play team?
    => I read about deploying in a translation page(https://www.playframework.com/documentation/2.3.x/Translations).
    But I can't how to contact them.
  3. And Do I contant the play team after to translate full doc?
    => I'd like to translate point to point. And I think that It will take about three months.
    If it fine some md not translate yet, I hope to deploying my doc in play's web site.

Please, help me. =)
Thanks.

Image path is error in main.min.css created by sbt-stylus plugin on windows platform

I clone the source and start the server on windows 7.
The is something wrong with the image path in main.min.css,which is created by sbt-stylus.
default

I diff the code with the offical website and found the difference:
On the offical websit, the logo image path is
"https://www.playframework.com/assets/images/logos/play_full_color.svg"
but,On my local server, the logo image path is
"http://localhost:9000/assets/css/\assets\images\logos\play_full_color.svg"
Bellow is the screenshot.
I'm not good at stylus, is there any help?

default
default

Alternative downloads section is confusing

All the newer play versions point to activator on the download page. I don't think that makes sense, as the links don't correspond to the Play versions at all, and it's really unclear how you would use activator to create a project with that specific play version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.