📝 Simple form & survey app for Nextcloud
Перейти к файлу
John Molakvoæ 86de8c0e95
Merge pull request #315 from nextcloud/fix/public-header-title
2020-05-05 08:58:53 +02:00
.github/workflows Bump copyrights 2020-04-29 11:43:18 +02:00
.tx initial commit 2019-05-13 19:15:45 -04:00
appinfo Bump copyrights 2020-04-29 11:43:18 +02:00
css Add title on public page 2020-05-05 08:55:40 +02:00
img Remove unused non-standard icons 2020-05-02 00:44:16 +02:00
l10n [tx-robot] updated from transifex 2020-05-05 03:16:01 +00:00
lib Merge pull request #315 from nextcloud/fix/public-header-title 2020-05-05 08:58:53 +02:00
screenshots Added screenshots for app 2019-05-28 21:12:54 -04:00
src Merge pull request #338 from nextcloud/fix/maxStringLengths 2020-05-04 10:48:22 +02:00
templates Prevent leaking personnal infos on forms 2020-05-05 08:45:36 +02:00
tests Bump copyrights 2020-04-29 11:43:18 +02:00
.editorconfig New question ui 2020-04-24 17:27:49 +02:00
.eslintrc.js Initial load and display of public form 2020-04-28 18:14:38 +02:00
.gitattributes Php cs fix 2020-04-29 11:50:03 +02:00
.gitignore Php cs fix 2020-04-29 11:50:03 +02:00
.l10nignore Version 1.0.3 2019-05-14 03:03:59 -04:00
.php_cs.dist Php cs fix 2020-04-29 11:50:03 +02:00
CHANGELOG.md Bump changelog 2020-04-29 09:32:37 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2020-02-12 16:14:42 +01:00
COPYING initial commit 2019-05-13 19:15:45 -04:00
Forms_Support.md update forms_support 2019-05-14 03:18:20 -04:00
ISSUE_TEMPLATE.md initial commit 2019-05-13 19:15:45 -04:00
LICENSE Initial commit 2019-05-13 01:53:28 -04:00
Makefile 2.0.0-beta1 2020-04-29 09:14:48 +02:00
README.md Add badges 2020-02-28 11:34:05 +01:00
babel.config.js New question ui 2020-04-24 17:27:49 +02:00
composer.json Bump copyrights 2020-04-29 11:43:18 +02:00
license.php Bump copyrights 2020-04-29 11:43:18 +02:00
package-lock.json Merge pull request #333 from nextcloud/dependabot/npm_and_yarn/core-js-3.6.5 2020-05-03 02:40:48 +00:00
package.json Merge pull request #333 from nextcloud/dependabot/npm_and_yarn/core-js-3.6.5 2020-05-03 02:40:48 +00:00
phpunit.integration.xml initial commit 2019-05-13 19:15:45 -04:00
phpunit.xml initial commit 2019-05-13 19:15:45 -04:00
stylelint.config.js Initial template cleanup and submit config 2020-04-28 14:43:43 +02:00
webpack.common.js Fix expiration display 2020-05-01 11:38:28 +02:00
webpack.dev.js Allow editing 2020-03-24 11:43:52 +01:00
webpack.prod.js Allow editing 2020-03-24 11:43:52 +01:00

README.md

Nextcloud Forms

Downloads Code coverage Dependabot status

Forms allows the creation of shareable forms, with multiple question types and privacy settings.

Note: This app is tested with Apache2 webserver, MySQL database, and apt-get package manager. To use alternatives, replace the relevant commands with those of your technology. This document assumes that a working NextCloud development environment has been installed. See https://docs.nextcloud.com/server/stable/developer_manual/general/devenv.html for help with this.

Build the app

# set up and build for production
make

# install dependencies
make dev-setup

# build for dev and watch changes
make watch-js

# build for dev
make build-js

# build for production with minification
make build-js-production

Running tests

You can use the provided Makefile to run all tests by using:

ps: only works if you're using php locally and have forms installed info your apps default folder

make test

✌️ Code of conduct

The Nextcloud community has core values that are shared between all members during conferences, hackweeks and on all interactions in online platforms including Github and Forums. If you contribute, participate or interact with this community, please respect our shared values. 😌

❤️ How to create a pull request

This guide will help you get started:

Code Overview

The following are the most important code files for development of the Forms App. Note: all paths are relative to nextcloud/apps/forms/

  • lib/Controller/apiController.php: The main API of the application. The functions defined in this file are called from http requests, and interface with the database

  • lib/Controller/pageController.php: Passes objects between screens

  • lib/Db/: All the files where database entities are defined and SQL queries are written. Mapper files define functions that retrieve data from the database

  • src/js/

    • Main.js: where Vue app is created
    • App.vue: The root component for the vue app
    • Router.js: Defines URLs that can be navigated to from the Vue app
  • src/js/components/

    • formsListItem.vue: Defines the list items (created surveys) within the forms app home page
    • quizFormItem.vue: Questions (for any survey) are defined as a quizFormItem here
  • src/js/views/

    • Create.vue: File where survey creation page is handled

    • List.vue: File where list of created surveys is handled (located on the forms app home page)

    • Results.vue: File where page that displays survey results is handled

    • appinfo/routes.php: Defines server endpoints that can be accessed by the client

  • /js/vote.js: File that contains the logic for the response page and responding to a form

  • /css/vote.scss: File that contains CSS formatting for the response page

  • /templates/vote.tmpl.php: File that contains the form template that is dynamically populated by the database