No description
Find a file
Ridhwana cae4c929ec
Save selected tags to the display ad model (#18633)
* feat: Add a pack file that pulls in the MultiSelect Component

* feat: move the tags to its own component

* save tags

* refactor: create a getCSRFToken function in the packs files so that it can be used in the admin

* feat: import the new module in request.js

* feat: remove unnecessary id

* feat: first pass of csrf token test

* chore: update the test

* fix: csrf token

* feat: hide the enw functionality behinda  feature flag

* fix: loading form twice

* refactor: import for csrftoken

* chore: update the description of the function

* feat: use acts_on_taggable to craete a relationship between display_ad and tag

* feat: add a tag field to the display_ad form

* feat: add the selected tags from the multiselect autocomplete component to the input text field that references the tag_list

* feat: add the tag_list to the controller so that we can save it to the db with the display ad parameters

* feat: pull out the tag validation from the article and the display_ads into a concern

* feat: write soem tests for validating the tag on the display_ads model

* feat: add the tag_list as a hidden field

* feat: set the selected tags on edit
2022-10-27 20:22:29 +02:00
.buildkite Removes this dupe container block since we are going to run this pipeline (#11506) 2020-11-19 15:05:49 -06:00
.gems
.github Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00
.husky [15 min fix] Updated husky package and configuration/pre-commit hook (#14346) 2021-07-27 15:39:00 -04:00
.vscode Stop recommending deprecated plugins (#17870) 2022-06-10 09:33:44 -05:00
.yarn/releases Update yarn from 1.22.5 to 1.22.18 (#16938) 2022-03-21 10:53:24 -04:00
app Save selected tags to the display ad model (#18633) 2022-10-27 20:22:29 +02:00
bin Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00
config Feed experiment for 10-25-2022 (#18628) 2022-10-25 16:16:28 -04:00
cypress Remove old cypress test (#18629) 2022-10-25 16:55:18 -04:00
datadog Declare DD_VERSION in prerun.sh 2nd try (#13258) 2021-04-05 17:10:46 -04:00
db Drop tables related to HtmlVariant tracking, ignore HtmlVariant.success_rate column (#18615) 2022-10-26 14:46:02 +03:00
lib Remove html variants tracking (#18594) 2022-10-21 14:57:20 +03:00
log
public Allow users to pause gifs in a post (#16314) 2022-02-02 13:45:55 +00:00
scripts Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00
spec Save selected tags to the display ad model (#18633) 2022-10-27 20:22:29 +02:00
swagger/v1 Update per_page_max in API endpoints + docs bump (#18415) 2022-09-02 14:07:19 -06:00
vendor Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00
.codeclimate.yml Enable ESLint 8 on CodeClimate (#18207) 2022-08-05 11:44:24 -04:00
.dockerignore Remove docs from repo ✂✂✂ (#14579) 2021-08-23 17:23:42 -04:00
.editorconfig
.env.test symlink .env_sample as .env.test (#16939) 2022-03-22 09:32:50 -05:00
.env_sample Add Google Analytics 4 Support (#18124) 2022-07-21 09:26:13 -05:00
.erb-lint.yml Upgrade Rails to 6.1.3.1 (#11333) 2021-04-05 10:39:48 -04:00
.eslintignore Remove non application files from frontend code coverage (#11752) 2020-12-04 20:00:20 -05:00
.eslintrc.js Bump eslint from 7.32.0 to 8.6.0 (#15926) 2022-01-05 13:47:40 -05:00
.gitattributes Configured the repository to handle line endings (#16234) 2022-01-21 08:57:05 -05:00
.gitignore Update .gitignore (#17057) 2022-03-30 13:44:56 -05:00
.gitpod.dockerfile Update to node version 16 (#15522) 2022-01-03 10:23:07 -06:00
.gitpod.yml Command update for gp cli in gitpod.yml (#18208) 2022-08-09 11:36:07 -06:00
.lintstagedrc.js feat: change auto-correct to autocorrect in rubocop (#18327) 2022-08-12 12:23:10 +02:00
.nvmrc Update to node version 16 (#15522) 2022-01-03 10:23:07 -06:00
.postcssrc.yml
.prettierignore
.prettierrc.json
.rspec
.rubocop.yml Temporarily disable Style/TopLevelMethodDefinition (#18109) 2022-07-14 06:59:51 -06:00
.rubocop_todo.yml ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
.ruby-version Upgrade to Ruby 3.0.2 (#12103) 2021-08-25 14:26:33 -04:00
.simplecov Move BlackBox to app/lib (#16183) 2022-01-20 09:37:53 +07:00
.slugignore Remove docs from repo ✂✂✂ (#14579) 2021-08-23 17:23:42 -04:00
.solargraph.yml Improving Solargraph options (#16899) 2022-03-17 16:47:55 -04:00
.yardopts
.yarnclean Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00
.yarnrc Update yarn from 1.22.5 to 1.22.18 (#16938) 2022-03-21 10:53:24 -04:00
babel.config.js Now <viewbox /> is preserved in SVGs when using the inline-react-svg plugin (#16287) 2022-01-24 16:25:14 -05:00
CHANGELOG.md Add support for versioned releases (#13750) 2021-07-28 10:10:33 -04:00
CODE_OF_CONDUCT.md
codecov.yml Create codecov.yml (#18602) 2022-10-21 08:20:47 -04:00
config.ru Upgrade Rails to 6.1.3.1 (#11333) 2021-04-05 10:39:48 -04:00
container-compose.yml Remove Elasticsearch ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ (#13606) 2021-05-03 11:09:45 -04:00
Containerfile Bump to Rails 7.0.2.2 MVP (#15908) 2022-03-30 15:00:33 -04:00
customJsDomEnvironment.js Bump jest from 27.5.1 to 28.1.0 (#17612) 2022-05-10 07:27:36 -04:00
cypress.config.js Bump cypress and @knapsack-pro/cypress (#18025) 2022-07-06 17:53:13 -04:00
cypress.dev.config.js Bump cypress and @knapsack-pro/cypress (#18025) 2022-07-06 17:53:13 -04:00
docker-compose.yml Add a minimal test database setup to the docker-compose file (#16305) 2022-01-31 09:22:38 -06:00
Dockerfile
empty-module.js
Gemfile Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00
Gemfile.lock Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00
gitpod-init.sh Made GitHub CLI install permanent in Gitpod (#14787) 2021-09-21 15:27:39 -04:00
Guardfile Rubocop fixes (#18461) 2022-09-16 15:25:48 +03:00
jest.config.js Bump i18n-js from 3.9.2 to 4.0.2 (#18254) 2022-08-10 16:32:57 -04:00
jsconfig.json Reworked some webpack aliases as prework for #16174. (#16412) 2022-02-04 06:34:37 -05:00
LICENSE.md
package.json Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00
postcss.config.js Suppress Postcss warnings & Re-enable Benhalpern deploy (#11521) 2020-11-20 11:27:49 -05:00
Procfile
Procfile.dev
Procfile.dev-hot
Rakefile Remove fix-db-schema-conflicts gem (#12432) 2021-01-26 10:52:38 -05:00
README.md Update README (#18587) 2022-10-17 10:12:22 -04:00
release-tasks.sh Remove Elasticsearch ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ (#13606) 2021-05-03 11:09:45 -04:00
SECURITY.md
svgo.config.js svgo: update configuration for 2.4 syntax (#14524) 2021-08-17 18:54:10 +02:00
testSetup.js workaround getComputedStyle issues in all jest tests (#14737) 2021-09-21 10:52:54 +01:00
yarn.lock Use Github action for CI (#18617) 2022-10-27 09:51:27 -04:00


Forem 🌱

For Empowering Community

Build Status GitHub commit activity GitHub issues ready for dev GitPod badge

Welcome to the Forem codebase, the platform that powers dev.to. We are so excited to have you. With your help, we can build out Forems usability, scalability, and stability to better serve our communities.

What is Forem?

Forem is open source software for building communities. Communities for your peers, customers, fanbases, families, friends, and any other time and space where people need to come together to be part of a collective. See our announcement post for a high-level overview of what Forem is.

dev.to (or just DEV) is hosted by Forem. It is a community of software developers who write articles, take part in discussions, and build their professional profiles. We value supportive and constructive dialogue in the pursuit of great code and career growth for all members. The ecosystem spans from beginner to advanced developers, and all are welcome to find their place within our community. ❤️

Table of Contents

Community

For a place to have open discussions on features, voice your ideas, or get help with general questions please visit our community at forem.dev.

Contributing

We encourage you to contribute to Forem! Please check out the Contributing to Forem guide for guidelines about how to proceed.

Getting Started

This section provides a high-level quick start guide. If you're looking for a more thorough installation guide (for example with macOS, you'll want to refer to our complete Developer Documentation.

We run on a Rails backend, and we are currently transitioning to a Preact-first frontend.

A more complete overview of our stack is available in our docs.

To launch Forem in Gitpod, navigate to https://gitpod.io/#https://github.com/{your_github_username}/forem.

Prerequisites

Local

Containers

Linux

OS X

Installation Documentation

Please see our installation guides, such as the one for macOS.

Developer Documentation

Check out our dedicated docs page for more technical documentation.

Core team

Vulnerability disclosure

Forem is the open source software which powers DEV.

We welcome security research on DEV under the terms of our vulnerability disclosure policy.

Acknowledgments

Thank you to the Twemoji project for the usage of their emojis.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Please see the LICENSE file in our repository for the full text.

Like many open source projects, we require that contributors provide us with a Contributor License Agreement (CLA). By submitting code to the Forem project, you are granting us a right to use that code under the terms of the CLA.

Our version of the CLA was adapted from the Microsoft Contributor License Agreement, which they generously made available to the public domain under Creative Commons CC0 1.0 Universal.

Any questions, please refer to our license FAQ doc or email yo@dev.to.


Sloan, the sloth mascot
Happy Coding ❤️

⬆ Back to Top