Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
8e99dbb
New notification pages
gondzo Nov 11, 2017
46ff5b4
Merge branch 'hotfix/filters_not_being_maintained_on_page_reload'
Nov 22, 2017
f03026d
integration changes
gondzo Nov 27, 2017
c1164ba
Github issue#1349, Move enhanceDropdown HOC to Dropdown component in …
Nov 29, 2017
19a0a91
Github issue#1349, Move enhanceDropdown HOC to Dropdown component in …
Nov 29, 2017
1b27a14
Fixed lint error
Nov 29, 2017
c26d252
Github issue#1348, Move SliderInput to react-components/formsy
Nov 29, 2017
817752d
Github issue#1349, Move enhanceDropdown HOC to Dropdown component in …
Nov 29, 2017
91d0ddb
latest
dmessing Dec 1, 2017
1c22cc6
Github issue#1392, Icon on project overview is not correct
Dec 1, 2017
5b5a201
Github issue#1391, Hide project from catalogue.
Dec 1, 2017
7a7aee7
Github #1387, Performance testing as new offering under QA projects
Dec 1, 2017
0cce9da
Temp deployment to dev
Dec 1, 2017
39e384d
Github #1387, Performance testing as new offering under QA projects
Dec 4, 2017
5f5493a
Merge branch 'dev' into feature/performance-testing
Dec 4, 2017
22e289b
lint fixes
Dec 4, 2017
2438f5d
changed Upto to Up to, removed booster pricing, added SPOCs definition
dmessing Dec 4, 2017
60702d7
Merge pull request #1405 from appirio-tech/feature/performance-testing
dmessing Dec 4, 2017
0278a45
removed anayltics projects
dmessing Dec 4, 2017
cb776bc
Github issue#1399, Add-ons section is not mandatory
Dec 4, 2017
26afc40
lint fix
Dec 4, 2017
51055ab
added two flows for lamora and analytics
dmessing Dec 4, 2017
a810fb2
added two flows for lamora and analytics
dmessing Dec 4, 2017
41a9506
fixed some linting issues
dmessing Dec 4, 2017
40df232
Merge pull request #1411 from appirio-tech/feature/analytics-flow
dmessing Dec 4, 2017
97711c4
Merge branch 'dev'
mtwomey Dec 4, 2017
fcc6d8f
Fix shrinkwrap for CircleCI
mtwomey Dec 5, 2017
f4be34b
Merge branch 'hotfix/fix-shrinkwrap'
mtwomey Dec 5, 2017
3fc3226
Merge branch 'hotfix/fix-shrinkwrap' into dev
mtwomey Dec 5, 2017
3529f64
added new projects
dmessing Dec 5, 2017
9290c9c
fixed
dmessing Dec 5, 2017
ad41e1a
fixed linting issues
dmessing Dec 5, 2017
5c8354a
described project type better
dmessing Dec 5, 2017
361ffbc
fixed health check aliases
dmessing Dec 5, 2017
1d84e9c
Merge pull request #1417 from appirio-tech/feature/health-check
dmessing Dec 5, 2017
99fc99c
Analytics project category & icons added; CSS fixes for menu to break…
Dec 5, 2017
3797681
Updated icon border color;
Dec 5, 2017
7036a7f
Updated icon border color;
Dec 5, 2017
65c6703
Github issue#1243, Connect Admin role
Dec 6, 2017
716cfbb
Merge branch 'dev' into feature/connect-admin-role
Dec 6, 2017
98007e6
temp deployment for feature branch
Dec 6, 2017
f54ba5b
Instead of deploying each feature branch, deploying one release speci…
Dec 6, 2017
280a068
Github issue#1371, Admins should be able to add people to a project w…
Dec 6, 2017
f4abbab
fixed #1352 taking constant for project listing chunk size.
Dec 7, 2017
3c16beb
Fixed #1352 set constant in offset too.
Dec 7, 2017
a125e25
Fixed #1352 changes constant name.
Dec 7, 2017
b671868
Fix #1352 change constant name and replace it with hardcoded value.
Dec 8, 2017
4a405d3
Merge pull request #1429 from appirio-tech/tech-debt#1352
Dec 11, 2017
ca7612b
Merge branch 'dev' into feature/admin-functionality-update-01
Dec 12, 2017
d8c0dfb
Fixed duplicate remove buttons for managers https://github.com/appiri…
Dec 12, 2017
c313ed4
added performance tuning
dmessing Dec 12, 2017
37abfff
Merge pull request #1433 from appirio-tech/feature/pref-tuning
dmessing Dec 12, 2017
eb9866f
fixed question
dmessing Dec 13, 2017
70fef5e
fixed language around risk for wprice and made health check live
dmessing Dec 13, 2017
3e2b544
Merge branch 'dev' into feature/admin-functionality-update-01
Dec 14, 2017
33b146c
Github issue#1371, Admins should be able to add people to a project w…
Dec 14, 2017
57a8cbb
Merge branch 'dev' of github.com:appirio-tech/connect-app into featur…
dmessing Dec 14, 2017
b475068
added health check icon
dmessing Dec 14, 2017
4117b3a
Merge branch 'master' of github.com:appirio-tech/connect-app into fea…
dmessing Dec 14, 2017
21d267e
adding images
dmessing Dec 14, 2017
40934b1
Merge pull request #1440 from appirio-tech/feature/pref-tuning
dmessing Dec 14, 2017
62cb67f
Update README.md
mtwomey Dec 14, 2017
4d22e4c
Merge branch 'dev' into feature/admin-functionality-update-01
Dec 15, 2017
f48cd0e
New events integration
gondzo Dec 15, 2017
a88e25b
Deploy to test02 for testing
gondzo Dec 15, 2017
93f889f
Update notification url
gondzo Dec 15, 2017
65ff2f8
adding latest perf-tuning
dmessing Dec 19, 2017
9ce7dc7
fixed listings
dmessing Dec 19, 2017
8df9a2b
Merge branch 'hotfix/perf-tuning' into dev
mtwomey Dec 20, 2017
4ca43c6
Merge branch 'hotfix/perf-tuning' into dev
mtwomey Dec 20, 2017
a9ac822
Merge branch 'hotfix/perf-tuning'
mtwomey Dec 20, 2017
b7e74b4
added perf tuning
dmessing Dec 20, 2017
9244be4
Merge branch 'hotfix/perf-tuning' into dev
mtwomey Dec 20, 2017
5908aa4
Merge branch 'hotfix/perf-tuning'
mtwomey Dec 20, 2017
1bc5e36
Removing feature branch from the deployable branch list.
Dec 20, 2017
d73a721
Merge pull request #1488 from appirio-tech/feature/admin-functionalit…
Dec 20, 2017
761f956
pointing back the react-components dependency to feature/connectv2 fr…
Dec 20, 2017
9374331
Merge branch 'dev' into feature/tech-debt
Dec 20, 2017
cf2fadc
update for tech debt changes
Dec 20, 2017
f5bc5dd
Fixed error in project template
Dec 20, 2017
62a086a
Merge pull request #1490 from appirio-tech/feature/tech-debt
Dec 20, 2017
25d373e
pointing back the react-components dependency to feature/connectv2 af…
Dec 20, 2017
1f57ebf
pointing back the react-components dependency to feature/connectv2 af…
Dec 20, 2017
be9b3eb
hiding latest offerings
dmessing Dec 20, 2017
700374d
Merge pull request #1494 from appirio-tech/feature/hide-latest-offerings
dmessing Dec 20, 2017
376724c
Merge pull request #1489 from appirio-tech/dev
mtwomey Dec 20, 2017
ca0635b
issue #1464 - added routes for specific post, topic and project file …
maxceem Dec 21, 2017
1f2f8cf
Issue #1465 - hide email settings column and replace it with a link t…
maxceem Dec 21, 2017
211aa7d
Issue #1468 - support for “[Who] responded to your post” notifications
maxceem Dec 21, 2017
3e3647b
merge bugBash05
gondzo Dec 21, 2017
3ad11a9
Merge pull request #1499 from maxceem/issue-1464
gondzo Dec 21, 2017
47be6fc
Merge pull request #1500 from maxceem/issue-1465
gondzo Dec 21, 2017
72435ac
Merge pull request #1501 from maxceem/issue-1468
gondzo Dec 21, 2017
bf3d9f9
update npm-shripnkwrap
gondzo Dec 21, 2017
ce733ce
Issue #1466 - Respect notification settings when displaying notificat…
maxceem Dec 21, 2017
5f3cb30
Merge branch 'notifications' into issue-1466
maxceem Dec 21, 2017
dc2b4be
Merge pull request #1503 from maxceem/issue-1466
gondzo Dec 21, 2017
92e29cf
lint fix
gondzo Dec 21, 2017
68f1889
CSS fixes for project status dropdown caret on grid/project
Dec 21, 2017
5cbeb68
Merge notifications branch
gondzo Dec 21, 2017
d9c07ac
Merge branch 'dev' of https://github.com/appirio-tech/connect-app int…
gondzo Dec 21, 2017
a5f50c1
fix lint
gondzo Dec 21, 2017
c545734
Updates for cache-control
mtwomey Dec 21, 2017
49ee835
Notifications dropdown fixes, css updates
Dec 21, 2017
ae9e9cb
Update config urls to https:
mtwomey Dec 21, 2017
f4f5973
Merge branch 'dev' of https://github.com/appirio-tech/connect-app int…
Dec 22, 2017
3b94aaf
Merge branch 'dev' of https://github.com/appirio-tech/connect-app int…
Dec 22, 2017
6bee3b1
Lint fixes
Dec 22, 2017
9c4eb5b
Restore the tab order of grid
Dec 22, 2017
c5baec6
add deploy scipt logs
gondzo Dec 22, 2017
cbd4d64
test deployment fix
gondzo Dec 22, 2017
baabf82
Event handler refactor
Dec 22, 2017
019d2e2
Merge branch 'dev' of https://github.com/appirio-tech/connect-app int…
Dec 22, 2017
9e63b3f
fix deployment
gondzo Dec 22, 2017
c9517c0
Merge branch 'dev' of https://github.com/appirio-tech/connect-app int…
gondzo Dec 22, 2017
52a7e2c
fix path
gondzo Dec 22, 2017
a5c4193
fix path
gondzo Dec 22, 2017
d597c78
Fixes
Dec 22, 2017
14a2372
Merge branch 'dev' of https://github.com/appirio-tech/connect-app int…
Dec 22, 2017
fb42acd
Clear the <body> "freeze" class to be able to scroll page on click on…
Dec 22, 2017
315f0ac
Issue #1511 - Hide "Profile" and "System" from Settings section
maxceem Dec 22, 2017
0ef500d
Merge pull request #1516 from maxceem/issue-1511
gondzo Dec 22, 2017
041607b
fix links in comments
maxceem Dec 22, 2017
eb1f574
Issue #1507 - Clicking on project post notification doesn't enable th…
maxceem Dec 22, 2017
ee6a3da
Merge pull request #1517 from maxceem/issue-1507
gondzo Dec 22, 2017
e55aae1
issue #1514 - Project status notifications
maxceem Dec 22, 2017
46d32a5
Merge pull request #1518 from maxceem/issue-1514
gondzo Dec 22, 2017
dd63928
issue #1508 - Dismissing a notification from the dropdown closes the …
maxceem Dec 22, 2017
0d35efd
issue #1519 - Screen flicker in dropdown
maxceem Dec 22, 2017
e1f0e89
Github issue#1522, Submit for Review not active
Dec 22, 2017
c3058db
Merge branch 'hotfix/disabled-submit-button-for-customers' into dev
Dec 22, 2017
52dc553
Issue #1497 - Dropdown menu doesn't take viewport bounds into conside…
maxceem Dec 22, 2017
433b29e
fix lint issue
maxceem Dec 22, 2017
7067e7e
CSS Fix for dropdown positions; Items border fix
Dec 22, 2017
a9b8b6c
Merge pull request #1523 from maxceem/issue-1497
Dec 22, 2017
db96642
Set interval to update notifications
ThomasKranitsas Dec 22, 2017
5ed22f6
Another deploy update
mtwomey Dec 22, 2017
24f9761
Merge pull request #1526 from ThomasKranitsas/auto-update-notif
Dec 22, 2017
e685a1e
Merge pull request #1521 from maxceem/issue-1519
Dec 22, 2017
b4cc44a
Fix the scrollbar jumping when loading - force vertical scrollbar at …
Dec 22, 2017
e579891
Merge pull request #1520 from maxceem/issue-1508
Dec 22, 2017
bfd5100
Small fixes for section title spanning 2+ lines
Dec 23, 2017
7892190
fix for issue#1368
kevinkid Dec 27, 2017
301c151
ci debug
kevinkid Dec 29, 2017
78442e9
notes field breaking solution debug
kevinkid Jan 1, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### For folks working on this code base, we're ogaznizing coding style and general guidelines [here](https://github.com/appirio-tech/connect-app/wiki/Community-Work-Read-Me-First!).

# TC Deployment Notes
_[TC Deployment Notes should always be kept up to date **on the default branch**. Update these notes when changes to this information occur]_

Expand Down Expand Up @@ -34,6 +36,12 @@ Install dependencies by running the following in the root of the project:
- To make sure your code passes linting: `npm run lint`
- To create the build: `npm run build`

## Login

During login, if your see `Invalid URL: http://localhost:3000` error in browser console, just browse http://localhost:3000 and it will show up.

Or, you can add into your `/etc/hosts` the line `127.0.0.1 local.topcoder-dev.com`. And access the app with http://local.topcoder-dev.com:3000. It will prevent you from getting `Invalid URL: http://localhost:3000` and you will be redirected successfully after login.

## Contributing

### Pull Requests
Expand Down
6 changes: 3 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ compile:

deployment:
development:
branch: [dev]
branch: dev
owner: appirio-tech
commands:
- ./deploy.sh DEV
- ./deploy.sh DEV no-cache
test:
branch: [qa]
owner: appirio-tech
commands:
- ./deploy.sh TEST01
test02:
branch: test02
branch: notifications
owner: appirio-tech
commands:
- ./deploy.sh TEST02
Expand Down
11 changes: 8 additions & 3 deletions config/constants/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ module.exports = {
AUTH0_CLIENT_ID : process.env.AUTH0_CLIENT_ID_DEV,
domain : 'topcoder-dev.com',
DOMAIN : 'topcoder-dev.com',
CONNECT_MESSAGE_API_URL: process.env.CONNECT_MESSAGE_API_URL,
ENV : 'DEV',

PROJECTS_API_URL : 'https://api.topcoder-dev.com',

NEW_RELIC_APPLICATION_ID: process.env.TRAVIS_BRANCH ? '8957921' : '',

ARENA_URL : '//arena.topcoder-dev.com',
Expand All @@ -24,8 +27,8 @@ module.exports = {
MAIN_URL : 'https://www.topcoder-dev.com',
PHOTO_LINK_LOCATION: 'https://community.topcoder-dev.com',
SWIFT_PROGRAM_URL : 'apple.topcoder-dev.com',
TCO16_URL : 'http://tco16.topcoder-dev.com',
TCO17_URL : 'http://tco17.topcoder-dev.com',
TCO16_URL : 'https://tco16.topcoder-dev.com',
TCO17_URL : 'https://tco17.topcoder-dev.com',
TCO_HOME_URL : 'https://www.topcoder-dev.com/tco',

ACCOUNTS_APP_URL : 'https://accounts.topcoder-dev.com/#!/member',
Expand All @@ -39,5 +42,7 @@ module.exports = {
CONNECT_SEGMENT_KEY: 'QBtLgV8vCiuRX1lDikbMjcoe9aCHkF6n',
PREDIX_PROGRAM_ID : 3448,
IBM_COGNITIVE_PROGRAM_ID : 3449,
HEAP_ANALYTICS_APP_ID : '4153837120'
HEAP_ANALYTICS_APP_ID : '4153837120',

TC_NOTIFICATION_URL: 'https://api.topcoder-dev.com'
}
1 change: 1 addition & 0 deletions config/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ module.exports = (() => {
if (['master', 'qa'].indexOf(branch) < 0) {
return require('./dev')
}

return require('./' + branch)
})()
10 changes: 7 additions & 3 deletions config/constants/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module.exports = {
ENV : 'PROD',
NODE_ENV : 'production',

PROJECTS_API_URL : 'https://api.topcoder.com',

NEW_RELIC_APPLICATION_ID: process.env.TRAVIS_BRANCH ? '11352758' : '',

ARENA_URL : '//arena.topcoder.com',
Expand All @@ -25,8 +27,8 @@ module.exports = {
MAIN_URL : 'https://www.topcoder.com',
PHOTO_LINK_LOCATION: 'https://community.topcoder.com',
SWIFT_PROGRAM_URL : 'apple.topcoder.com',
TCO16_URL : 'http://tco16.topcoder.com',
TCO17_URL : 'http://tco17.topcoder.com',
TCO16_URL : 'https://tco16.topcoder.com',
TCO17_URL : 'https://tco17.topcoder.com',
TCO_HOME_URL : 'https://www.topcoder.com/tco',

ACCOUNTS_APP_URL : 'https://accounts.topcoder.com/#!/member',
Expand All @@ -39,5 +41,7 @@ module.exports = {
CONNECT_SEGMENT_KEY: 'ajP6cQ5SN2EMUWoWTOLROVnAHsOlsDCn',
PREDIX_PROGRAM_ID : 3448,
IBM_COGNITIVE_PROGRAM_ID : 3449,
HEAP_ANALYTICS_APP_ID : '638908330'
HEAP_ANALYTICS_APP_ID : '638908330',

TC_NOTIFICATION_URL: 'https://api.topcoder.com/'
}
6 changes: 5 additions & 1 deletion config/constants/qa.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module.exports = {
DOMAIN : 'topcoder-qa.com',
ENV : 'QA',

PROJECTS_API_URL : 'http://api.topcoder-dev.com',

NEW_RELIC_APPLICATION_ID: process.env.TRAVIS_BRANCH ? '11199233' : '',

ARENA_URL : '//arena.topcoder-qa.com',
Expand All @@ -38,5 +40,7 @@ module.exports = {
CONNECT_SEGMENT_KEY: '',
PREDIX_PROGRAM_ID : 3448,
IBM_COGNITIVE_PROGRAM_ID : 3449,
HEAP_ANALYTICS_APP_ID : '4153837120'
HEAP_ANALYTICS_APP_ID : '4153837120',

TC_NOTIFICATION_URL: 'http://api.topcoder-dev.com/'
}
41 changes: 23 additions & 18 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/usr/bin/env bash

ENV=$1

if [ "$2" = "no-cache" ]; then
NOCACHE=true
fi

echo $ENV
#AWS_REGION=$(eval "echo \$${ENV}_AWS_REGION")
AWS_ACCESS_KEY_ID=$(eval "echo \$${ENV}_AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY=$(eval "echo \$${ENV}_AWS_SECRET_ACCESS_KEY")
AWS_S3_BUCKET=$(eval "echo \$${ENV}_S3_BUCKET")
Expand All @@ -11,44 +15,45 @@ configure_aws_cli() {
aws --version
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
#aws configure set default.region $AWS_REGION
aws configure set default.output json
echo "Configured AWS CLI."
}

deploy_s3bucket() {
#chmod -R 775 ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist
cat dist/app.2e9868372e0e2992d5d2.css
#aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control private,no-store,no-cache,must-revalidate,max-age=0
#result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control private,no-store,no-cache,must-revalidate,max-age=0`
aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*.txt" --exclude "*.js" --exclude "*.css"
result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*.txt" --exclude "*.js" --exclude "*.css"`
if [ "$NOCACHE" = "true" ]; then
S3_CACHE_OPTIONS="--cache-control private,no-store,no-cache,must-revalidate,max-age=0"
echo "*** Deploying with Cloudfront Cache disabled ***"
else
S3_CACHE_OPTIONS="--cache-control max-age=0,s-maxage=86400"
fi

S3_OPTIONS="--exclude '*.txt' --exclude '*.js' --exclude '*.css'"
echo aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} ${S3_CACHE_OPTIONS} ${S3_OPTIONS}
eval "aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} ${S3_CACHE_OPTIONS} ${S3_OPTIONS}"
result=`eval "aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} ${S3_CACHE_OPTIONS} ${S3_OPTIONS}"`
if [ $? -eq 0 ]; then
#echo $result
echo "All html, font, image, map and media files are Deployed without gzip encoding!"
else
echo "Deployment Failed - $result"
exit 1
fi
#result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control private,no-store,no-cache,must-revalidate,max-age=0`
aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*" --include "*.txt" --include "*.js" --include "*.css" --content-encoding gzip
result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*" --include "*.txt" --include "*.js" --include "*.css" --content-encoding gzip`

S3_OPTIONS="--exclude '*' --include '*.txt' --include '*.js' --include '*.css' --content-encoding gzip"
echo aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} ${S3_CACHE_OPTIONS} ${S3_OPTIONS}
eval "aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} ${S3_CACHE_OPTIONS} ${S3_OPTIONS}"
result=`eval "aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} ${S3_CACHE_OPTIONS} ${S3_OPTIONS}"`
if [ $? -eq 0 ]; then
#echo $result
echo "All txt, css, and js files are Deployed! with gzip"
else
echo "Deployment Failed - $result"
exit 1
fi

fi
}

#sed -i 's/^application\/x-font-woff.*/application\/font-woff\t\t\t\twoff/' /etc/mime.types
echo -e "application/font-woff\t\t\t\twoff2" >> /etc/mime.types
echo -e "application/font-sfnt\t\t\t\tttf" >> /etc/mime.types
echo -e "application/json\t\t\t\tmap" >> /etc/mime.types
#sed -i 's/^image\/vnd.microsoft.icon.*/image\/vnd.microsoft.icon/' /etc/mime.types
#sed -i 's/^image\/x-icon.*/image\/x-icon\t\t\t\tico/' /etc/mime.types

cat /etc/mime.types | grep -i woff
cat /etc/mime.types | grep -i ico
cat /etc/mime.types | grep -i map
Expand Down
Loading